]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: MUSB: IRQ reset: babble handling is host only
authorKevin Hilman <khilman@mvista.com>
Fri, 17 Aug 2007 16:47:24 +0000 (09:47 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 20 Aug 2007 08:36:32 +0000 (01:36 -0700)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/plat_uds.c

index 48f4334a7c44f7375017f5e064b8f64113aa8ac7..dacf930c7ffe65a5753260405c55ae71a6a68382 100644 (file)
@@ -603,6 +603,7 @@ static irqreturn_t musb_stage0_irq(struct musb * musb, u8 int_usb,
         * 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
@@ -617,7 +618,9 @@ static irqreturn_t musb_stage0_irq(struct musb * musb, u8 int_usb,
                                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);