Title: [7160] branches/2009R1/drivers/usb/musb/blackfin.c: bug[#4141]using pio for ep0 would get things even worse,so use DMA for it as well
Revision
7160
Author
cliff
Date
2009-08-11 22:17:16 -0400 (Tue, 11 Aug 2009)

Log Message

bug[#4141]using pio for ep0 would get things even worse,so use DMA for it as well

Modified Paths

Diff

Modified: branches/2009R1/drivers/usb/musb/blackfin.c (7159 => 7160)


--- branches/2009R1/drivers/usb/musb/blackfin.c	2009-08-12 00:54:05 UTC (rev 7159)
+++ branches/2009R1/drivers/usb/musb/blackfin.c	2009-08-12 02:17:16 UTC (rev 7160)
@@ -95,7 +95,7 @@
 {
 	void __iomem *fifo = hw_ep->fifo;
 
-	if (ANOMALY_05000467 && hw_ep->epnum != 0) {
+#if ANOMALY_05000467
 		u8 epnum = hw_ep->epnum;
 		u16 dma_reg = 0;
 
@@ -132,15 +132,14 @@
 		/* Reset DMA */
 		bfin_write16(USB_DMA_REG(epnum, USB_DMAx_CTRL), 0);
 		SSYNC();
-	} else {
+#else
 
 		if (unlikely((unsigned long)dst & 0x01))
 			insw_8((unsigned long)fifo, dst,
 				len & 0x01 ? (len >> 1) + 1 : len >> 1);
 		else
 			insw((unsigned long)fifo, dst,
-				len & 0x01 ? (len >> 1) + 1 : len >> 1);
-	}
+#endif				len & 0x01 ? (len >> 1) + 1 : len >> 1);
 
 	DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
 			'R', hw_ep->epnum, fifo, len, dst);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to