aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/musb/musb_gadget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 0169dcf3a6ff..363cfad003f8 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -765,10 +765,11 @@ static void rxstate(struct musb *musb, struct musb_request *req)
765 if (is_dma_capable() && musb_ep->dma) { 765 if (is_dma_capable() && musb_ep->dma) {
766 unmap_dma_buffer(req, musb); 766 unmap_dma_buffer(req, musb);
767 767
768 /* Clear DMAENAB for the 768 /*
769 * Clear DMAENAB and AUTOCLEAR for the
769 * PIO mode transfer 770 * PIO mode transfer
770 */ 771 */
771 csr &= ~MUSB_RXCSR_DMAENAB; 772 csr &= ~(MUSB_RXCSR_DMAENAB | MUSB_RXCSR_AUTOCLEAR);
772 musb_writew(epio, MUSB_RXCSR, csr); 773 musb_writew(epio, MUSB_RXCSR, csr);
773 } 774 }
774 775