mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 18:56:44 +07:00
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>
This commit is contained in:
parent
d95815ba6a
commit
b580121222
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user