drm/amd/display: To update backlight restore mechanism
authorCamille Cho <Camille.Cho@amd.com>
Thu, 12 Nov 2020 07:33:19 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:08:56 +0000 (12:08 -0500)
commit7530d914633894ea691343e2671c88be36609776
tree395bddc174304439c4b093be4c1d8a735fb4d81a
parenteaae693835770eca991f68917304c84130e993e5
drm/amd/display: To update backlight restore mechanism

[Why]
Cached backlight is never being updated since panel_cntl specific
registers were moved from abm to panel_cntl.

[How]
Update cached backlight in set_abm_immediate_disable as what we used to
do. Also, update the priority of backlight restore mechanism so that
cached backlight has the highest priority since it is always correct.

Signed-off-by: Camille Cho <Camille.Cho@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hwseq.c