drm/amdgpu: save/restore backlight level in legacy dce code
authorAlex Deucher <[email protected]>
Thu, 8 Mar 2018 14:56:01 +0000 (09:56 -0500)
committerAlex Deucher <[email protected]>
Wed, 14 Mar 2018 20:08:40 +0000 (15:08 -0500)
commita59b3c80fd0041223ccf720504974a543b81b1d0
treea882f3883661b92385cc0d1365c4ba6f9497754f
parent0660b58c9038f5ef94b8fe33716449945ea786e5
drm/amdgpu: save/restore backlight level in legacy dce code

Save/restore the backlight level scratch register in S3/S4 so the
backlight level comes back at the previously requested level.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=199047
Fixes: 4ec6ecf48c64d (drm/amdgpu: drop scratch regs save and restore from S3/S4 handling)
Acked-by: Michel Dänzer <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c