Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153203364
D35482.id106913.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.id106913.diff
View Options
Index: sys/dev/usb/controller/xhci.h
===================================================================
--- sys/dev/usb/controller/xhci.h
+++ 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. */
+ enum xhci_quirks sc_quirks;
};
#define XHCI_CMD_LOCK(sc) sx_xlock(&(sc)->sc_cmd_sx)
Index: sys/dev/usb/controller/xhci.c
===================================================================
--- sys/dev/usb/controller/xhci.c
+++ 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
Mon, Apr 20, 7:07 PM (21 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31858748
Default Alt Text
D35482.id106913.diff (1 KB)
Attached To
Mode
D35482: USB: add quirks to XHCI
Attached
Detach File
Event Timeline
Log In to Comment