public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: MUSB: IRQ reset: babble handling is host only
@ 2007-08-17 16:47 Kevin Hilman
  2007-08-20  8:37 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Hilman @ 2007-08-17 16:47 UTC (permalink / raw)
  To: linux-omap-open-source

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

Signed-off-by: Kevin Hilman <khilman@mvista.com>
---
 drivers/usb/musb/plat_uds.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: dev/drivers/usb/musb/plat_uds.c
===================================================================
--- dev.orig/drivers/usb/musb/plat_uds.c
+++ 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);
--

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

end of thread, other threads:[~2007-08-20  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-17 16:47 [PATCH] ARM: OMAP: MUSB: IRQ reset: babble handling is host only Kevin Hilman
2007-08-20  8:37 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox