aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy.c
diff options
context:
space:
mode:
authorBo Shen <[email protected]>2014-12-17 09:18:49 +0000
committerFelipe Balbi <[email protected]>2014-12-22 16:41:15 +0000
commit6785a1034461c2d2c205215f63a50a740896e55b (patch)
treece268162cac862c48ce60b1d7ac2b963efadaaa9 /drivers/usb/phy/phy.c
parentusb: gadget: udc: atmel: change setting for DMA (diff)
downloadkernel-6785a1034461c2d2c205215f63a50a740896e55b.tar.gz
kernel-6785a1034461c2d2c205215f63a50a740896e55b.zip
usb: gadget: udc: atmel: fix possible IN hang issue
When receive data, the RXRDY in status register set by hardware after a new packet has been stored in the endpoint FIFO. When it is copied from FIFO, this bit is cleared which 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 may cause the accessing FIFO corrupt, which will make the data loss. Fixes: 914a3f3b3754 (USB: add atmel_usba_udc driver) Cc: <[email protected]> # 2.6.24+ Acked-by: Nicolas Ferre <[email protected]> Signed-off-by: Bo Shen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'drivers/usb/phy/phy.c')
0 files changed, 0 insertions, 0 deletions