aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/tusb6010.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c
index 8bde6fc5eb75..3969813c217d 100644
--- a/drivers/usb/musb/tusb6010.c
+++ b/drivers/usb/musb/tusb6010.c
@@ -22,6 +22,7 @@
22#include <linux/prefetch.h> 22#include <linux/prefetch.h>
23#include <linux/usb.h> 23#include <linux/usb.h>
24#include <linux/irq.h> 24#include <linux/irq.h>
25#include <linux/io.h>
25#include <linux/platform_device.h> 26#include <linux/platform_device.h>
26#include <linux/dma-mapping.h> 27#include <linux/dma-mapping.h>
27#include <linux/usb/nop-usb-xceiv.h> 28#include <linux/usb/nop-usb-xceiv.h>
@@ -198,7 +199,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf)
198 /* Best case is 32bit-aligned destination address */ 199 /* Best case is 32bit-aligned destination address */
199 if ((0x02 & (unsigned long) buf) == 0) { 200 if ((0x02 & (unsigned long) buf) == 0) {
200 if (len >= 4) { 201 if (len >= 4) {
201 writesl(fifo, buf, len >> 2); 202 iowrite32_rep(fifo, buf, len >> 2);
202 buf += (len & ~0x03); 203 buf += (len & ~0x03);
203 len &= 0x03; 204 len &= 0x03;
204 } 205 }
@@ -245,7 +246,7 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf)
245 /* Best case is 32bit-aligned destination address */ 246 /* Best case is 32bit-aligned destination address */
246 if ((0x02 & (unsigned long) buf) == 0) { 247 if ((0x02 & (unsigned long) buf) == 0) {
247 if (len >= 4) { 248 if (len >= 4) {
248 readsl(fifo, buf, len >> 2); 249 ioread32_rep(fifo, buf, len >> 2);
249 buf += (len & ~0x03); 250 buf += (len & ~0x03);
250 len &= 0x03; 251 len &= 0x03;
251 } 252 }