aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
authorAndrey Konovalov <andrey.konovalov@linaro.org>2012-02-17 22:00:57 +0400
committerAndrey Konovalov <andrey.konovalov@linaro.org>2012-02-17 22:00:57 +0400
commit8393ea14076dbda27010fcabcff5e2d40f0bfb1f (patch)
treea980405258207f6a0d0edfc78ae07fb652bf54e1 /drivers/usb/host/ehci.h
parent49561d58a14351d136518f25bd686f9a6ca41b69 (diff)
parent1a20977eb1ba05d3e1a20f1e81a830a876fdb054 (diff)
Merge branch 'linaro-android-3.3-agreen-rebase' into linaro-android
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 01cefde1d49..945eacac58e 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -779,6 +779,23 @@ static inline unsigned ehci_read_frame_index(struct ehci_hcd *ehci)
#endif
+/*
+ * Writing to dma coherent memory on ARM may be delayed via L2
+ * writing buffer, so introduce the helper which can flush L2 writing
+ * buffer into memory immediately, especially used to flush ehci
+ * descriptor to memory.
+ * */
+#ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE
+static inline void ehci_sync_mem()
+{
+ mb();
+}
+#else
+static inline void ehci_sync_mem()
+{
+}
+#endif
+
/*-------------------------------------------------------------------------*/
#ifndef DEBUG