Skip to content

RFC OMAP2+: Convert hwmod to do clock inits and reset when drivers initialize

Rajendra Nayak linux-arm-kernel linux-omap 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: OMAP2+: hwmod: Split _init() into _init_early() and _init_late()arch/arm/mach-omap2/omap_hwmod.c+12 -50 replies
2/2ARM: OMAP2+: hwmod: Do the late part of init and setup/reset on first enablearch/arm/mach-omap2/omap_hwmod.c+30 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] OMAP2+: Convert hwmod to do clock inits and reset when drivers initialize

hwmod framework today does a module enable/reset/idle for all hwmods registered for a platform quite early at boot.

This has a few downsides like
-1- An early crash failing to enable/reset a device/module needs earlyprintk for anyone to see the crash logs
-2- Puts a dependency to have all PM frameworks initialized and ready quite early which inturn prevents some of these to be converted to be independent drivers

This RFC is an attempt to remove some of these dependencies and do the hwmod inits (which need other PM frameworks) and resets when the module is first enabled.

For modules which never get enabled through the boot, there is late call to do the inits and resets for rest of those modules.

I have been experimenting with some of these on my omap4 panda es and that boots fine with these patches. If the approach looks fine I will continue to work some more in this direction and get rid of the early timer need for hwmod and other PM frameworks.

Rajendra Nayak (2):
ARM: OMAP2+: hwmod: Split _init() into _init_early() and _init_late()
ARM: OMAP2+: hwmod: Do the late part of init and setup/reset on first
enable

 arch/arm/mach-omap2/omap_hwmod.c |   47 +++++++++++++++++++++++++++++++++-----
 1 file changed, 41 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.9.5