ARM: OMAP: MUSB: IRQ reset: babble handling is host only
Subsystems (2)
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.
Signed-off-by Kevin Hilman <[email protected]>
--- drivers/usb/musb/plat_uds.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/usb/musb/plat_uds.c +4 -1
@@ -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(strucERR ("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);
--
Quoted 21 lines · Kevin Hilman
In reset IRQ, move babble handling inside a host-ifdef since it doesn't apply (or compile) for gadget.
Signed-off-by Kevin Hilman <[email protected]>--- 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(strucERR ("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