]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amd/display: register edp_backlight_control() for DCN301
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Tue, 22 Aug 2023 16:31:09 +0000 (12:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Aug 2023 22:04:53 +0000 (18:04 -0400)
commit1611917f39bee1abfc01501238db8ac19649042d
tree59558c00993649521c61d73157fc2c4b50add372
parent7c2949c12e6d5c0f054ee884de6e5a6a1794f0a9
drm/amd/display: register edp_backlight_control() for DCN301

As made mention of in commit 099303e9a9bd ("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: stable@vger.kernel.org
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2765
Fixes: 9c75891feef0 ("drm/amd/display: rework recent update PHY state commit")
Suggested-by: Swapnil Patel <swapnil.patel@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_init.c