OSDN Git Service

drm/amd/display: Disable ABM before destroy ABM struct
authorPaul Hsieh <paul.hsieh@amd.com>
Fri, 3 May 2019 15:50:10 +0000 (23:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:00 +0000 (12:21 -0500)
commit1090d58d4815b1fcd95a80987391006c86398b4c
tree3257bc4dbd39b89d1f1bd06d2e89cb1cbeb20e3a
parentccd76ebce4e8e1e19df19bc7024355a1f82a9363
drm/amd/display: Disable ABM before destroy ABM struct

[Why]
When disable driver, OS will set backlight optimization
then do stop device.  But this flag will cause driver to
enable ABM when driver disabled.

[How]
Send ABM disable command before destroy ABM construct

Signed-off-by: Paul Hsieh <paul.hsieh@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c