Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178109699
D62132.1795986468.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
617 B
Referenced Files
None
Subscribers
None
D62132.1795986468.diff
View Options
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -574,7 +574,12 @@
DPRINTF("RUNTIMEOFFSET=0x%x\n", sc->sc_runt_off);
DPRINTF("DOOROFFSET=0x%x\n", sc->sc_door_off);
- sc->sc_hcversion = XREAD2(sc, capa, XHCI_HCIVERSION);
+ /*
+ * Use XREAD4(XHCI_CAPLENGTH) instead of XREAD2(XHCI_HCIVERSION),
+ * some controllers want 32bits aligned accesses even when only
+ * accessing 16bits.
+ */
+ sc->sc_hcversion = XREAD4(sc, capa, XHCI_CAPLENGTH) >> 16;
DPRINTF("xHCI version = 0x%04x\n", sc->sc_hcversion);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 9:07 PM (23 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42062724
Default Alt Text
D62132.1795986468.diff (617 B)
Attached To
Mode
D62132: xhci: read HCIVERSION as part of the first capability word
Attached
Detach File
Event Timeline