Skip to contentSkip to conversation

ARM: OMAP: MUSB: IRQ reset: babble handling is host only

PATCH In review Kevin Hilman 2 participants 2 messages Aug 17, 2007 – Aug 20, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: MUSB: IRQ reset: babble handling is host only

In reset IRQ, move babble handling inside a host-ifdef since it doesn't apply (or compile) for gadget.

---
 drivers/usb/musb/plat_uds.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/usb/musb/plat_uds.c +4 -1
Index: dev/drivers/usb/musb/plat_uds.c
===================================================================
@@ -604,6 +604,7 @@ static irqreturn_t musb_stage0_irq(struc
 	 * only host sees babble; only peripheral sees bus reset.
 	 */
 	if (int_usb & MUSB_INTR_RESET) {
+#ifdef CONFIG_USB_MUSB_HDRC_HCD
 		if (devctl & MUSB_DEVCTL_HM) {
 			/*
 			 * Looks like non-HS BABBLE can be ignored, but
@@ -618,7 +619,9 @@ static irqreturn_t musb_stage0_irq(struc
 				ERR("Stopping host session because of babble\n");
 				musb_writeb(mbase, MUSB_DEVCTL, 0);
 			}
-		} else {
+		} else
+#endif	/* CONFIG_USB_MUSB_HDRC_HCD */
+		{
 			DBG(1, "BUS RESET\n");
 
 			musb_g_reset(musb);

--

#1 lore raw
Quoted 21 lines · Kevin Hilman

In reset IRQ, move babble handling inside a host-ifdef since it doesn't apply (or compile) for gadget.

---
 drivers/usb/musb/plat_uds.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: dev/drivers/usb/musb/plat_uds.c
===================================================================

drivers/usb/musb/plat_uds.c +1 -0
@@ -604,6 +604,7 @@ static irqreturn_t musb_stage0_irq(struc
 	 * only host sees babble; only peripheral sees bus reset.
 	 */
 	if (int_usb & MUSB_INTR_RESET) {
+#ifdef CONFIG_USB_MUSB_HDRC_HCD
 		if (devctl & MUSB_DEVCTL_HM) {
 			/*
 			 * Looks like non-HS BABBLE can be ignored, but

drivers/usb/musb/plat_uds.c static irqreturn_t musb_stage0_irq(struc · line 627

Quoted 10 lines
drivers/usb/musb/plat_uds.c +3 -1
@@ -618,7 +619,9 @@ static irqreturn_t musb_stage0_irq(struc
 				ERR("Stopping host session because of babble\n");
 				musb_writeb(mbase, MUSB_DEVCTL, 0);
 			}
-		} else {
+		} else
+#endif	/* CONFIG_USB_MUSB_HDRC_HCD */
+		{
 			DBG(1, "BUS RESET\n");
 
 			musb_g_reset(musb);

Thanks, pushing today.

Tony