drm/amd/display: Restore backlight brightness after system resume
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 2 Sep 2019 08:33:42 +0000 (16:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Sep 2019 19:40:32 +0000 (14:40 -0500)
commitbb264220d9316f6bd7c1fd84b8da398c93912931
tree463e2dd2b3bead435867682903fb64ffd5694c90
parente42a34dec68950ebad7904f235ed2dfff5bb27b5
drm/amd/display: Restore backlight brightness after system resume

Laptops with AMD APU doesn't restore display backlight brightness after
system resume.

This issue started when DC was introduced.

Let's use BL_CORE_SUSPENDRESUME so the backlight core calls
update_status callback after system resume to restore the backlight
level.

Tested on Dell Inspiron 3180 (Stoney Ridge) and Dell Latitude 5495
(Raven Ridge).

Cc: <stable@vger.kernel.org>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c