OMAP4: hwmod: Introduce the module control in hwmod control
authorBenoit Cousson <b-cousson@ti.com>
Sun, 10 Jul 2011 11:56:33 +0000 (05:56 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Jul 2011 11:56:33 +0000 (05:56 -0600)
commit45c38252d76a96e6e0e05f982ca44096191a8eea
tree0153ffca190c3bc431af7efda25f54f6f3fc58fe
parent288d6a161819ee99b3a6e2972c5b0d9ede22c553
OMAP4: hwmod: Introduce the module control in hwmod control

Take advantage of the explicit modulemode control to fix
the way parents clocks are managed.
A module must be disabled before any parents are disabled.
That programming model was not possible with the previous
implementation that was considering a modulemode as a leaf
clock node managed by the clock fmwk.
This was leading to bad crash upon disable when the parent
clock was gated before the module completed its transition
to idle.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c