OMAP2+: hwmod: Fix the HW reset management
authorBenoit Cousson <b-cousson@ti.com>
Fri, 1 Jul 2011 20:54:05 +0000 (22:54 +0200)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Jul 2011 01:13:36 +0000 (19:13 -0600)
commit31f62866c578b3d47ef7810b336e9e193b90167f
treed30bbc66087a8c4ea5772603f19263a17df473ab
parentd24bcaa3fa711f7dd9c4aacf3c58083cf666418f
OMAP2+: hwmod: Fix the HW reset management

The HW reset must be de-assert after the clocks are enabled
but before waiting for the target to be ready. Otherwise the
reset might not work properly since the clock is not running
to proceed the reset.

De-assert the reset after _enable_clocks and before
_wait_target_ready.
Re-assert it only when the clocks are disabled.

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