[PATCH 2/2] OMAP2/3/4: omap_hwmod: fix reset bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The _reset() hook should early when _soft_reset() fails, not it if
succeeds.  Currently, it aborts when _soft_reset() succeeds, resulting
in not waiting for RESETDONE.

Signed-off-by: Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx>
---
 arch/arm/mach-omap2/omap_hwmod.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index b103797..76b6845 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -746,7 +746,7 @@ static int _reset(struct omap_hwmod *oh)
 
 	v = oh->_sysc_cache;
 	r = _set_softreset(oh, &v);
-	if (!r)
+	if (r)
 		return r;
 	_write_sysconfig(v, oh);
 
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux