aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/musb/blackfin.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c
index fcec87ea709e..ef51eb4343ab 100644
--- a/drivers/usb/musb/blackfin.c
+++ b/drivers/usb/musb/blackfin.c
@@ -53,13 +53,11 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
53void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) 53void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
54{ 54{
55 void __iomem *fifo = hw_ep->fifo; 55 void __iomem *fifo = hw_ep->fifo;
56
57#ifdef CONFIG_BF52x
56 u8 epnum = hw_ep->epnum; 58 u8 epnum = hw_ep->epnum;
57 u16 dma_reg = 0; 59 u16 dma_reg = 0;
58 60
59 DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
60 'R', hw_ep->epnum, fifo, len, dst);
61
62#ifdef CONFIG_BF52x
63 invalidate_dcache_range((unsigned int)dst, 61 invalidate_dcache_range((unsigned int)dst,
64 (unsigned int)(dst + len)); 62 (unsigned int)(dst + len));
65 63
@@ -102,6 +100,9 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
102 len & 0x01 ? (len >> 1) + 1 : len >> 1); 100 len & 0x01 ? (len >> 1) + 1 : len >> 1);
103#endif 101#endif
104 102
103 DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
104 'R', hw_ep->epnum, fifo, len, dst);
105
105 dump_fifo_data(dst, len); 106 dump_fifo_data(dst, len);
106} 107}
107 108