summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_core.c
diff options
context:
space:
mode:
authorAjay Kumar Gupta2010-10-19 09:08:13 +0200
committerGreg Kroah-Hartman2010-10-22 19:22:17 +0200
commit843bb1d0ff29b96eeb184988223ba55e3e8c2f57 (patch)
treecfddfb6141e53f86a107803ebddfcc18996737de /drivers/usb/musb/musb_core.c
parentUSB: musb: add musb support for AM35x (diff)
downloadkernel-qcow2-linux-843bb1d0ff29b96eeb184988223ba55e3e8c2f57.tar.gz
kernel-qcow2-linux-843bb1d0ff29b96eeb184988223ba55e3e8c2f57.tar.xz
kernel-qcow2-linux-843bb1d0ff29b96eeb184988223ba55e3e8c2f57.zip
USB: musb: AM35x: Workaround for fifo read issue
AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r--drivers/usb/musb/musb_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 7e2c353755d2..c9f9024c5515 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -272,6 +272,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
}
}
+#if !defined(CONFIG_USB_MUSB_AM35X)
/*
* Unload an endpoint's FIFO
*/
@@ -309,6 +310,7 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
readsb(fifo, dst, len);
}
}
+#endif
#endif /* normal PIO */