Skip to content

Commit 1611917

Browse files
effective-lightalexdeucher
authored andcommitted
drm/amd/display: register edp_backlight_control() for DCN301
As made mention of in commit 099303e ("drm/amd/display: eDP intermittent black screen during PnP"), we need to turn off the display's backlight before powering off an eDP display. Not doing so will result in undefined behaviour according to the eDP spec. So, set DCN301's edp_backlight_control() function pointer to dce110_edp_backlight_control(). Cc: [email protected] Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2765 Fixes: 9c75891 ("drm/amd/display: rework recent update PHY state commit") Suggested-by: Swapnil Patel <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7c2949c commit 1611917

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/display/dc/dcn301/dcn301_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ static const struct hw_sequencer_funcs dcn301_funcs = {
7575
.get_hw_state = dcn10_get_hw_state,
7676
.clear_status_bits = dcn10_clear_status_bits,
7777
.wait_for_mpcc_disconnect = dcn10_wait_for_mpcc_disconnect,
78+
.edp_backlight_control = dce110_edp_backlight_control,
7879
.edp_power_control = dce110_edp_power_control,
7980
.edp_wait_for_hpd_ready = dce110_edp_wait_for_hpd_ready,
8081
.set_cursor_position = dcn10_set_cursor_position,

0 commit comments

Comments
 (0)