]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:14:16 +0000 (13:14 +0200)
commitcb2daf3e8cef34dfcccf390e64e7f7747aaf48f2
tree4eca5fdbfe5989380e211e13dea9ec7fa25695b4
parent5bd1ab51d4c7b9b1eda9e125a386ec6b7596ffe5
drm/amd/display: Restore backlight brightness after system resume

commit bb264220d9316f6bd7c1fd84b8da398c93912931 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c