Page MenuHomeFreeBSD

D62132.1795986454.diff
No OneTemporary

Authored By
Unknown
Size
617 B
Referenced Files
None
Subscribers
None

D62132.1795986454.diff

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

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.1795986454.diff (617 B)

Event Timeline