diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-03-08 09:56:01 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-03-14 16:08:40 -0400 |
commit | a59b3c80fd0041223ccf720504974a543b81b1d0 (patch) | |
tree | a882f3883661b92385cc0d1365c4ba6f9497754f /drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |
parent | 0660b58c9038f5ef94b8fe33716449945ea786e5 (diff) |
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 <michel.daenzer@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index d9533bbc467c..588cf6594391 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |||
@@ -350,6 +350,7 @@ struct amdgpu_mode_info { | |||
350 | u16 firmware_flags; | 350 | u16 firmware_flags; |
351 | /* pointer to backlight encoder */ | 351 | /* pointer to backlight encoder */ |
352 | struct amdgpu_encoder *bl_encoder; | 352 | struct amdgpu_encoder *bl_encoder; |
353 | u8 bl_level; /* saved backlight level */ | ||
353 | struct amdgpu_audio audio; /* audio stuff */ | 354 | struct amdgpu_audio audio; /* audio stuff */ |
354 | int num_crtc; /* number of crtcs */ | 355 | int num_crtc; /* number of crtcs */ |
355 | int num_hpd; /* number of hpd pins */ | 356 | int num_hpd; /* number of hpd pins */ |