[PATCH v7 1/2] provide lock-less versions of clk_{enable|disable}
Sekhar Nori
nsekhar at ti.com
Mon Jan 2 02:43:21 PST 2017
On Sunday 18 December 2016 09:21 PM, Sekhar Nori wrote:
> ARM: davinci: Make __clk_{enable,disable} functions public
>
> In some cases, there is a need to enable a clock as part of clock
> enable callback of a different clock. For example, USB 2.0 PHY clock
> enable requires USB 2.0 clock to be enabled. In this case, it is safe to
> instead call __clk_enable() since the clock framework lock is already
> taken. calling clk_enable() causes recursive locking error.
>
> A similar case arises in the clock disable path.
>
> To enable such usage, make __clk_{enable,disable} functions publicly
> available outside of clock.c. Also, call them
> davinci_clk_{enable|disable} now to be consistent with how other
> davinci-specific clock functions are named.
>
> Note that these functions are not exported to drivers. They are meant
> for usage in platform specific clock management code.
Applied to 'fixes' with above commit text.
Thanks,
Sekhar
More information about the linux-arm-kernel
mailing list