Skip to content
Commit fcc76072 authored by Sean Young's avatar Sean Young Committed by Thierry Reding
Browse files

pwm: bcm2835: Allow PWM driver to be used in atomic context



clk_get_rate() may do a mutex lock. Fetch the clock rate once, and prevent
rate changes using clk_rate_exclusive_get().

Signed-off-by: default avatarSean Young <sean@mess.org>
Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 7170d3be
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment