On Sun, Feb 15, 2015 at 5:12 PM, Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx> wrote: > On Sun, Feb 15, 2015 at 04:17:31PM -0600, Rob Herring wrote: >> On Thu, Feb 12, 2015 at 11:45 AM, Maxime Coquelin >> <mcoquelin.stm32@xxxxxxxxx> wrote: >> > Some DT ARM platforms need the reset controllers to be initialized before >> > the timers. >> > This is the case of the stm32 and sunxi platforms. >> >> I would say this is the exception, not the rule and therefore should >> be handled in a machine desc function. Or it could be part of your >> timer setup. Or is the bootloader's problem (like arch timer setup). >> >> We just want to limit how much this mechanism gets used. > > Can you clarify please - what is "this mechanism"? Placing explicit > calls at this location, or the whole OF_DECLARE_* stuff? Well, it is both really, but I guess OF_DECLARE_ linker sections are just an implementation detail of scattering various explicit init calls. My concern is we'll end up with another initcall like mechanism and the ordering problems associated with them. For example, what if another platform needs clocks initialized before the reset controller? I could see wanting to add gpio, pinctrl, syscon, etc. Another example is the Beagleboard Cape folks want to read an I2C EEPROM early to apply overlays before drivers probe. Where do we draw the line? > Sebastian suggested using the OF_DECLARE_* stuff for the Dove PMU - > so maybe you have a comment on that too? I have the same position that it is the exception, not the rule, so use the machine descriptor. I'm willing to be convinced otherwise, but I think these cases need to be questioned. Rob -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html