summaryrefslogtreecommitdiff
path: root/drivers/mfd/stm32-lptimer.c
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2021-08-16 15:57:12 -0400
committerAlex Deucher <alexander.deucher@amd.com>2021-09-16 09:56:23 -0400
commit9987fbb368038d41bfdcda2a3f7f4945d7daa9a5 (patch)
tree23459fc869798f4b12a23d95735b5f9bc545590e /drivers/mfd/stm32-lptimer.c
parentfb932dfeb87411a8a01c995576198bfc302df339 (diff)
drm/amd/display: Get backlight from PWM if DMCU is not initialized
On Carrizo/Stoney systems we set backlight through panel_cntl, i.e. directly via the PWM registers, if DMCU is not initialized. We always read it back through ABM registers which leads to a mismatch and forces atomic_commit to program the backlight each time. Instead make sure we use the same logic for backlight readback, i.e. read it from panel_cntl if DMCU is not initialized. We also need to remove some extraneous and incorrect calculations at the end of dce_get_16_bit_backlight_from_pwm. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1666 Cc: stable@vger.kernel.org Reviewed-by: Josip Pavic <josip.pavic@amd.com> Acked-by: Mikita Lipski <mikita.lipski@amd.com> Signed-off-by: Harry Wentland <harry.wentland@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/mfd/stm32-lptimer.c')
0 files changed, 0 insertions, 0 deletions