diff options
| author | Clément Péron <[email protected]> | 2020-01-13 09:23:13 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2020-01-20 12:17:33 +0000 |
| commit | 3e954d9626895d374704bb49a8fb538a974ebcf5 (patch) | |
| tree | c16e336d98282ca0a00a6aec8a62e69d6403d147 /drivers/pwm/pwm-imx27.c | |
| parent | pwm: omap-dmtimer: Allow compiling with COMPILE_TEST (diff) | |
| download | kernel-3e954d9626895d374704bb49a8fb538a974ebcf5.tar.gz kernel-3e954d9626895d374704bb49a8fb538a974ebcf5.zip | |
pwm: sun4i: Move pwm_calculate() out of spin_lock()
pwm_calculate() calls clk_get_rate() while holding a spin_lock().
This create an issue as clk_get_rate() may sleep.
Move pwm_calculate() out of this spin_lock().
Fixes: c32c5c50d4fe ("pwm: sun4i: Switch to atomic PWM")
Reported-by: Alexander Finger <[email protected]>
Sugested-by: Vasily Khoruzhick <[email protected]>
Tested-by: Alexander Finger <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Clément Péron <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-imx27.c')
0 files changed, 0 insertions, 0 deletions
