drm/amd/display: update bios scratch when setting backlight
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Nov 2021 15:44:48 +0000 (10:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 19:06:54 +0000 (14:06 -0500)
commit1f5792549376b3c20639cef7b787cf6262177b66
treecf02f5f8f1e29b09eab50e3045d17b3fac0a14fe
parent081664ef3e43dce93710ed5ece326478edbe0934
drm/amd/display: update bios scratch when setting backlight

Update the bios scratch register when updating the backlight
level.  Some platforms apparently read this scratch register
and do additional operations in their hotkey handlers.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1518
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c