Title: [7161] trunk/drivers/usb/musb/blackfin.c: bug[#4141]using pio for ep0 would get things even worse,so use DMA for it as well
- Revision
- 7161
- Author
- cliff
- Date
- 2009-08-11 22:18:59 -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: trunk/drivers/usb/musb/blackfin.c (7160 => 7161)
--- trunk/drivers/usb/musb/blackfin.c 2009-08-12 02:17:16 UTC (rev 7160)
+++ trunk/drivers/usb/musb/blackfin.c 2009-08-12 02:18:59 UTC (rev 7161)
@@ -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
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