Skip to content

Commit f5b2c10

Browse files
Swapnil Patelalexdeucher
authored andcommitted
drm/amd/display: Don't check registers, if using AUX BL control
[Why] Currently the driver looks DCN registers to access if BL is on or not. This check is not valid if we are using AUX based brightness control. This causes driver to not send out "backlight off" command during power off sequence as it already thinks it is off. [How] Only check DCN registers if we aren't using AUX based brightness control. Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Acked-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Swapnil Patel <swapnil.patel@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 81cc877 commit f5b2c10

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,9 @@ void dce110_edp_backlight_control(
964964
return;
965965
}
966966

967-
if (link->panel_cntl) {
967+
if (link->panel_cntl && !(link->dpcd_sink_ext_caps.bits.oled ||
968+
link->dpcd_sink_ext_caps.bits.hdr_aux_backlight_control == 1 ||
969+
link->dpcd_sink_ext_caps.bits.sdr_aux_backlight_control == 1)) {
968970
bool is_backlight_on = link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl);
969971

970972
if ((enable && is_backlight_on) || (!enable && !is_backlight_on)) {

0 commit comments

Comments
 (0)