[PATCH] clk: tegra: Don't enable PLLs during early boot
Russell King - ARM Linux
linux at arm.linux.org.uk
Mon Mar 25 07:02:36 EDT 2013
On Fri, Mar 22, 2013 at 09:48:11AM -0600, Stephen Warren wrote:
> This assumption was made long ago. I know drivers are supposed to assume
> that clocks are disabled when they're probed, but historically that
> wasn't always the case, so if the audio drivers assumed that, and then
> did clk_enable() as the first thing, they got a warning due to the
> enabling an already enabled clock and/or later attempts to disable the
> clocks wouldn't actually disable them.
No. clocks have always been able to be enabled multiple times. You
should only get a warning if you try and disable it more times than you
enabled it, because that's a violation of the API.
Consider two drivers sharing the same input clock. If one driver
disables the clock more times than it enables it, then it's treading
on the other drivers need to have the clock enabled.
More information about the linux-arm-kernel
mailing list