Skip to content
Commit 3e954d96 authored by Clément Péron's avatar Clément Péron Committed by Thierry Reding
Browse files

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: c32c5c50 ("pwm: sun4i: Switch to atomic PWM")
Reported-by: default avatarAlexander Finger <alex.mobigo@gmail.com>
Sugested-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Tested-by: default avatarAlexander Finger <alex.mobigo@gmail.com>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarClément Péron <peron.clem@gmail.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 9f2919e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment