diff options
author | Bin Liu <b-liu@ti.com> | 2016-05-31 17:05:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-01 23:58:59 +0200 |
commit | b5801212229f6ca5c418c68cd1e0548f4b53f624 (patch) | |
tree | ecc18eff8ca6a4e9b661a11e20cb651b4b8b68d3 /drivers/usb | |
parent | USB: xhci: Add broken streams quirk for Frescologic device id 1009 (diff) | |
download | linux-b5801212229f6ca5c418c68cd1e0548f4b53f624.tar.xz linux-b5801212229f6ca5c418c68cd1e0548f4b53f624.zip |
usb: musb: host: clear rxcsr error bit if set
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/musb_host.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 2f8ad7f1f482..931381c51ad7 100644 --- 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) { |