mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 01:40:30 +00:00
Merge branch 'for-greg' of master.kernel.org:/pub/scm/linux/kernel/git/balbi/usb into usb-linus
* 'for-greg' of master.kernel.org:/pub/scm/linux/kernel/git/balbi/usb: usb: musb: gadget: clear TXPKTRDY flag when set FLUSHFIFO usb: musb: host: compare status for negative error values
This commit is contained in:
commit
869e9e567f
@ -1524,6 +1524,12 @@ static void musb_gadget_fifo_flush(struct usb_ep *ep)
|
||||
csr = musb_readw(epio, MUSB_TXCSR);
|
||||
if (csr & MUSB_TXCSR_FIFONOTEMPTY) {
|
||||
csr |= MUSB_TXCSR_FLUSHFIFO | MUSB_TXCSR_P_WZC_BITS;
|
||||
/*
|
||||
* Setting both TXPKTRDY and FLUSHFIFO makes controller
|
||||
* to interrupt current FIFO loading, but not flushing
|
||||
* the already loaded ones.
|
||||
*/
|
||||
csr &= ~MUSB_TXCSR_TXPKTRDY;
|
||||
musb_writew(epio, MUSB_TXCSR, csr);
|
||||
/* REVISIT may be inappropriate w/o FIFONOTEMPTY ... */
|
||||
musb_writew(epio, MUSB_TXCSR, csr);
|
||||
|
@ -1575,7 +1575,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
|
||||
/* even if there was an error, we did the dma
|
||||
* for iso_frame_desc->length
|
||||
*/
|
||||
if (d->status != EILSEQ && d->status != -EOVERFLOW)
|
||||
if (d->status != -EILSEQ && d->status != -EOVERFLOW)
|
||||
d->status = 0;
|
||||
|
||||
if (++qh->iso_idx >= urb->number_of_packets)
|
||||
|
Loading…
Reference in New Issue
Block a user