aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2022-12-02 18:35:05 +0000
committerThierry Reding <[email protected]>2022-12-06 11:46:03 +0000
commit45558b3abb87eeb2cedb8a59cb2699c120b5102a (patch)
treec27fe0730d0ce2659113a4250eb5bcf50277da17 /drivers/pwm/pwm-stm32.c
parentpwm: jz4740: Use regmap_{set,clear}_bits (diff)
downloadkernel-45558b3abb87eeb2cedb8a59cb2699c120b5102a.tar.gz
kernel-45558b3abb87eeb2cedb8a59cb2699c120b5102a.zip
pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
As was documented in commit 0f02f491b786 ("pwm: sifive: Reduce time the controller lock is held") a caller of pwm_sifive_update_clock() must hold the mutex. So fix pwm_sifive_clock_notifier() to grab the lock. While this necessity was only documented later, the race exists since the driver was introduced. Fixes: 9e37a53eb051 ("pwm: sifive: Add a driver for SiFive SoC PWM") Reported-by: Emil Renner Berthing <[email protected]> Reviewed-by: Emil Renner Berthing <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions