Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107232539
D35482.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D35482.diff
View Options
diff --git a/sys/dev/usb/controller/xhci.h b/sys/dev/usb/controller/xhci.h
--- a/sys/dev/usb/controller/xhci.h
+++ b/sys/dev/usb/controller/xhci.h
@@ -487,6 +487,10 @@
typedef int (xhci_port_route_t)(device_t, uint32_t, uint32_t);
+enum xhci_quirks {
+ XHCI_QUIRK_DISABLE_PORT_PED = 0x00000001,
+};
+
struct xhci_softc {
struct xhci_hw_softc sc_hw;
/* base device */
@@ -563,6 +567,9 @@
/* vendor string for root HUB */
char sc_vendor[16];
+
+ /* XHCI quirks. */
+ uint32_t sc_quirks;
};
#define XHCI_CMD_LOCK(sc) sx_xlock(&(sc)->sc_cmd_sx)
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
@@ -3392,7 +3392,8 @@
XWRITE4(sc, oper, port, v | XHCI_PS_PRC);
break;
case UHF_PORT_ENABLE:
- XWRITE4(sc, oper, port, v | XHCI_PS_PED);
+ if ((sc->sc_quirks & XHCI_QUIRK_DISABLE_PORT_PED) == 0)
+ XWRITE4(sc, oper, port, v | XHCI_PS_PED);
break;
case UHF_PORT_POWER:
XWRITE4(sc, oper, port, v & ~XHCI_PS_PP);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 4:59 PM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15771299
Default Alt Text
D35482.diff (1 KB)
Attached To
Mode
D35482: USB: add quirks to XHCI
Attached
Detach File
Event Timeline
Log In to Comment