All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP3: USBHOST: Fix prcm interrupt handler
@ 2009-07-17 22:24 Vikram Pandita
  2009-07-17 23:32 ` Kevin Hilman
  0 siblings, 1 reply; 3+ messages in thread
From: Vikram Pandita @ 2009-07-17 22:24 UTC (permalink / raw)
  To: khilman, linux-omap; +Cc: Vikram Pandita

For clearing the PM_WKST of USBHOST domain, two fclocks need
to be enabled: HOST1 and HOST2

Current code just enables HOST1 fclock and thus not clearing the
Wake status of usbhost domain correctly

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
---
 arch/arm/mach-omap2/pm34xx.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index e80d59f..4cbeff1 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -264,8 +264,10 @@ static irqreturn_t prcm_interrupt_handler (int irq, void *dev_id)
 					       CM_FCLKEN);
 			cm_set_mod_reg_bits(wkst, OMAP3430ES2_USBHOST_MOD,
 					    CM_ICLKEN);
-			cm_set_mod_reg_bits(wkst, OMAP3430ES2_USBHOST_MOD,
-					    CM_FCLKEN);
+			cm_set_mod_reg_bits((1<<OMAP3430ES2_EN_USBHOST2_SHIFT)|
+					(1<<OMAP3430ES2_EN_USBHOST1_SHIFT),
+					OMAP3430ES2_USBHOST_MOD,
+					CM_FCLKEN);
 			prm_write_mod_reg(wkst, OMAP3430ES2_USBHOST_MOD,
 					  PM_WKST);
 			while (prm_read_mod_reg(OMAP3430ES2_USBHOST_MOD,
-- 
1.6.3.3.334.g916e1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-18  0:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-17 22:24 [PATCH] OMAP3: USBHOST: Fix prcm interrupt handler Vikram Pandita
2009-07-17 23:32 ` Kevin Hilman
2009-07-18  0:28   ` Pandita, Vikram

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.