Title: [6706] branches/2009R1/drivers/usb/musb/blackfin.c: task[#2424]add workaround for data corruption when access EP FIFO via the core
Revision
6706
Author
cliff
Date
2009-06-14 22:36:11 -0500 (Sun, 14 Jun 2009)

Log Message

task[#2424]add workaround for data corruption when access EP FIFO via the core

Modified Paths

Diff

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


--- branches/2009R1/drivers/usb/musb/blackfin.c	2009-06-15 03:33:27 UTC (rev 6705)
+++ branches/2009R1/drivers/usb/musb/blackfin.c	2009-06-15 03:36:11 UTC (rev 6706)
@@ -94,9 +94,9 @@
 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
 {
 	void __iomem *fifo = hw_ep->fifo;
-#if defined(CONFIG_MUSB_DMA_POLL)
-        u8 epnum = hw_ep->epnum;
-        u16 dma_reg = 0;
+#if defined(CONFIG_MUSB_DMA_POLL) || ANOMALY_05000467
+	u8 epnum = hw_ep->epnum;
+	u16 dma_reg = 0;
 
 	invalidate_dcache_range((unsigned int)dst,
 		(unsigned int)(dst + len));
@@ -266,8 +266,9 @@
 	return 0;
 }
 
-void musb_platform_set_mode(struct musb *musb, u8 musb_mode)
+int musb_platform_set_mode(struct musb *musb, u8 musb_mode)
 {
+	return -EIO;
 }
 
 int __init musb_platform_init(struct musb *musb)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to