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>
Thu, 3 Oct 2019 14:10:59 +0000 (09:10 -0500)
commitc7c5be3c892fd33b9c9ff1d4a5570b85e6deec0b
tree19c10c9570fe1d2e5b523a62241e81e6f9eee95a
parenta142ba8800dd12de1a9013477efa8ab692041ed3
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).

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