|
|
Re: [RFC 00/14] Generic clk for Orion platforms. |
On Tue, 6 Mar 2012, Jason wrote: > On Tue, Mar 06, 2012 at 05:17:43PM +0100, Andrew Lunn wrote: > > On Tue, Mar 06, 2012 at 10:58:40AM -0500, Jason wrote: > > > I'm assuming the driver(s) will increment a reference, so when it > > > reaches zero, the framework would call a clk_gate hook. > > > > You missed an important point. No driver has claimed these, but u-boot > > has turned them on. > > This sounds like a bug in u-boot. > > > So we want linux to turn off all clocks for which > > there is no driver using them, in order to save power. > > kirkwood_clk_ctrl is dual purpose. It turns on needed clocks, but it > > also turns off unneeded clocks. > > This is creating a lot of complexity where the real answer seems to be > to get u-boot to shutoff all peripheral clocks before handing over > control to linux. No. Yes, u-Boot might be wrong. But the kernel should always distrust as much as possible from the bootloader. Instead of presuming some initial state from the bootloader, it is best to simply set that state up front. The fewer ties you have with any bootloaders, the fewer bugs you'll have in the end. Otherwise you might enter into a game of requiring a specific version of a specific bootloader to go with a given kernel, and that is far more complex to deal with than the complexity you are referring to above. Nicolas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
[Linux ARM (vger)] [Linux ARM MSM] [Linux Omap] [Linux Arm] [Linux Tegra] [Fedora ARM] [eCos] [Linux Fastboot] [Gcc Help] [Git] [DCCP] [IETF Announce] [Security] [PDAs] [Linux] [Linux MIPS] [Yosemite Campsites] [Photos]
![]() |
![]() |