usb: gadget: mv_udc: enable stream mode
authorNeil Zhang <zhangwm@marvell.com>
Tue, 10 Jul 2012 02:07:04 +0000 (10:07 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 23 Aug 2012 08:04:15 +0000 (11:04 +0300)
According to ChipIdea's reference manual in section 8.5.2
"Non-streaming operational mode in device mode", we'd better enable stream
mode, especially that ISO endpoints are not supported when the SDIS bit
is set.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_udc_core.c

index 425a204d29c242f21f90d829016e44bbf0de5e24..4d3a4136b376abd36d9bea32d21b6465ad46cd2c 100644 (file)
@@ -1082,7 +1082,7 @@ static int udc_reset(struct mv_udc *udc)
        tmp |= USBMODE_CTRL_MODE_DEVICE;
 
        /* turn setup lockout off, require setup tripwire in usbcmd */
-       tmp |= USBMODE_SETUP_LOCK_OFF | USBMODE_STREAM_DISABLE;
+       tmp |= USBMODE_SETUP_LOCK_OFF;
 
        writel(tmp, &udc->op_regs->usbmode);