[PATCH v2 0/3] pwm: rockchip: Eliminate potential race condition when probing

Simon South simon at simonsouth.net
Tue Dec 22 11:34:03 EST 2020

Uwe Kleine-König <u.kleine-koenig at pengutronix.de> writes:
> While looking through your I found another little problem that you might
> want to address: rockchip_pwm_get_state() calls clk_get_rate(pc->clk).
> According to the documentation (in include/linux/clk.h) this is only
> valid for enabled clocks but there are no precautions that pc->clk is
> enabled.


Thanks very much for reviewing all this, Uwe. I'll follow up shortly
with a new patch series.

Simon South
simon at simonsouth.net

More information about the linux-arm-kernel mailing list