diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-12-15 18:12:47 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-12-16 16:08:50 +0100 |
commit | 68ae882596524a2dde9da73283241b01d56375d5 (patch) | |
tree | 48aef9818758ca4886c31c1664c3e73f037a5633 /drivers/usb | |
parent | b9206e61f3d87535ac4f4b0b858e674fd1edfeaf (diff) | |
download | u-boot-imx-68ae882596524a2dde9da73283241b01d56375d5.zip u-boot-imx-68ae882596524a2dde9da73283241b01d56375d5.tar.gz u-boot-imx-68ae882596524a2dde9da73283241b01d56375d5.tar.bz2 |
USB: gadget: atmel_usba_udc: fix transfer hang issue
When receive data, the RXRDY in status register set by hardware
after a new packet has been stored in the endpoint FIFO. After,
we copy from FIFO, we clear it, make the FIFO can be accessed
again.
In the receive_data() function, this bit RXRDY has been cleared.
So, after the receive_data() function return, this bit should
not be cleared again, or else it will cause the accessing FIFO
corrupt, which will make the data loss.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/atmel_usba_udc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 12628ef..fbc74f3 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c @@ -1062,7 +1062,6 @@ static void usba_ep_irq(struct usba_udc *udc, struct usba_ep *ep) if ((epstatus & epctrl) & USBA_RX_BK_RDY) { DBG(DBG_BUS, "%s: RX data ready\n", ep->ep.name); receive_data(ep); - usba_ep_writel(ep, CLR_STA, USBA_RX_BK_RDY); } } |