projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d95815b
)
usb: musb: host: clear rxcsr error bit if set
author
Bin Liu
<b-liu@ti.com>
Tue, 31 May 2016 15:05:03 +0000
(10:05 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 21:58:59 +0000
(14:58 -0700)
The MUSB Programming Guide states that the driver should clear RXCSR
bit2 when the controller sets the bit.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_host.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/musb_host.c
b/drivers/usb/musb/musb_host.c
index 2f8ad7f1f482cd55116b8cb3a7fd575fc79c360a..931381c51ad7b234f79a93199a270ca05a8e590d 100644
(file)
--- a/
drivers/usb/musb/musb_host.c
+++ b/
drivers/usb/musb/musb_host.c
@@
-1870,6
+1870,9
@@
void musb_host_rx(struct musb *musb, u8 epnum)
status = -EPROTO;
musb_writeb(epio, MUSB_RXINTERVAL, 0);
+ rx_csr &= ~MUSB_RXCSR_H_ERROR;
+ musb_writew(epio, MUSB_RXCSR, rx_csr);
+
} else if (rx_csr & MUSB_RXCSR_DATAERROR) {
if (USB_ENDPOINT_XFER_ISOC != qh->type) {