]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 18 Oct 2019 08:26:12 +0000 (04:26 -0400)
commit912d5ad5604469cb857ecfcbefb6f45955dd5644
tree9cde8b7952cf617b3b2266cc97dce48ae86a0a51
parent9df45b6bf1d914c50ed04fade12e0cd377f24d92
drm/amd/display: Restore backlight brightness after system resume

BugLink: https://bugs.launchpad.net/bugs/1848046
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c