summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-08-29 13:24:15 +0800
committerPeng Fushi <fushi.peng@freescale.com>2014-09-01 10:20:59 +0800
commitae20a4870e652ba55bb6f0b9528cdaf3ad8321d1 (patch)
tree1e8ac74e334f2b059bdf6c852f6447ac39830fa3
parente314064d431d32a5a81da6681f57cdb3c20cad5b (diff)
ENGR00329306 usb: gadget: imx: disable stream mode
The USB OTG controller may respond nothing to USB Host token, if the RXFIFO overrun occurs due to busy system bus when the USB OTG controller works in device mode, disable stream mode can work around this issue. Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rwxr-xr-xdrivers/usb/gadget/arcotg_udc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/arcotg_udc.c b/drivers/usb/gadget/arcotg_udc.c
index 2182aa0617ee..b32b786f1b1c 100755
--- a/drivers/usb/gadget/arcotg_udc.c
+++ b/drivers/usb/gadget/arcotg_udc.c
@@ -398,6 +398,7 @@ static int dr_controller_setup(struct fsl_udc *udc)
tmp |= USB_MODE_SETUP_LOCK_OFF;
if (pdata->es)
tmp |= USB_MODE_ES;
+ tmp |= USB_MODE_STREAM_DISABLE;
fsl_writel(tmp, &dr_regs->usbmode);
/* wait dp to 0v */
dr_discharge_line(pdata, true);