OSDN Git Service

usb: musb: core: there is no connect interrupt in peripheral mode
authorFelipe Balbi <balbi@ti.com>
Wed, 25 Feb 2015 20:48:50 +0000 (14:48 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:26 +0000 (15:33 -0500)
MUSB does not generate a connect IRQ when working
in peripheral mode.

Tested-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c

index 3fb7d6e..7ac6979 100644 (file)
@@ -761,10 +761,6 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
 
                musb->ep0_stage = MUSB_EP0_START;
 
-               /* flush endpoints when transitioning from Device Mode */
-               if (is_peripheral_active(musb)) {
-                       /* REVISIT HNP; just force disconnect */
-               }
                musb->intrtxe = musb->epmask;
                musb_writew(musb->mregs, MUSB_INTRTXE, musb->intrtxe);
                musb->intrrxe = musb->epmask & 0xfffe;