Skip to contentSkip to conversation

USB: Add dcache support to the EHCI driver

PATCH New Stefan Roese 1 participant 1 message Jan 21, 2009 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: Add dcache support to the EHCI driver

This patch adds routines to handle (flush/invalidate) the dcache for the QH and qTD structures and data buffers. This is needed on platforms using this EHCI support with dcache enabled (like the MIPS VCT board port).

---
 drivers/usb/usb_ehci.h      |    5 ++
 drivers/usb/usb_ehci_core.c |   98 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+), 0 deletions(-)
drivers/usb/usb_ehci.h +5 -0
index b72498b..b3c1d5d 100644
@@ -180,6 +180,11 @@ struct QH {
 	uint32_t qh_endpt2;
 	uint32_t qh_curtd;
 	struct qTD qh_overlay;
+	/*
+	 * Add dummy fill value to make the size of this struct
+	 * aligned to 32 bytes
+	 */
+	uint8_t fill[16];
 };
 
 /* Low level init functions */
drivers/usb/usb_ehci_core.c +98 -0

116 lines not on this page · raw message

Signature · 1 line
1.6.1