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>
* 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
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);