[PATCH] pwm: rockchip: Eliminate potential race condition when probing
Simon South
simon at simonsouth.net
Sat Dec 19 15:32:06 EST 2020
Thierry, Trent and Robin, thanks for reviewing this and for your
comments. I think I understand a lot better now how this code needs to
work.
Trent Piepho <tpiepho at gmail.com> writes:
> Anyway, from the existing code, it seems clear that pc->pclk needs to
> be enabled for register access and pc->clk to generate a signal. The
> call to clk_prepare(pc->pclk) should become
> clk_prepare_enable(pc->pclk) and moved to before the enabled_conf
> check. Then clk_disable(pc->pclk) afterward.
I'll follow up with a revised set of patches that implement this. (I've
split it into multiple changes as they seem logically distinct and I
find the progression easier to see this way.)
--
Simon South
simon at simonsouth.net
More information about the Linux-rockchip
mailing list