aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2024-07-03 13:00:06 +0200
committerUwe Kleine-König <[email protected]>2024-07-05 23:21:56 +0200
commit7346e7a058a2c9aa9ff1cc699c7bf18a402d9f84 (patch)
treee5cd4a8357026633b82e4e1593f62854632baf13 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentf01af3022d4a46362c5dda3d35dea939f3246d10 (diff)
pwm: stm32: Always do lazy disabling
When the state changes from enabled to disabled, polarity, duty_cycle and period are not configured in hardware and TIM_CCER_CCxE is just cleared. However if the state changes from one disabled state to another, all parameters are written to hardware because the early exit from stm32_pwm_apply() is only taken if the pwm is currently enabled. This yields surprises like: Applying { .period = 1, .duty_cycle = 0, .enabled = false } succeeds if the pwm is initially on, but fails if it's already off because 1 is a too small period. Update the check for lazy disable to always exit early if the target state is disabled, no matter what is currently configured. Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm") Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions