OSDN Git Service

drm/amd/display: send pipe set command to dmcu when backlight is set
authorJosip Pavic <Josip.Pavic@amd.com>
Wed, 30 Jan 2019 21:23:47 +0000 (16:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Feb 2019 20:58:26 +0000 (15:58 -0500)
commit2010840b9b4667d2bd9b45617964d3fa7fb086ea
tree86f169bc054880e5980037d29b740524e7cd6a94
parent240d09d070a7e082d9cb3c2a6112ce3c43bf5df5
drm/amd/display: send pipe set command to dmcu when backlight is set

[Why]
Previously, a change removed code that would send a pipe set command
to dmcu each time the backlight was set, as it was thought to be
superfluous. However, it is possible for the backlight to be set
before a valid pipe has been set, which causes DMCU to hang after a
DPMS restore on some systems.

[How]
Send a pipe set command to DMCU prior to setting the backlight.

Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c