Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107532137
D35483.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
899 B
Referenced Files
None
Subscribers
None
D35483.diff
View Options
diff --git a/sys/dev/usb/usb_hub.c b/sys/dev/usb/usb_hub.c
--- a/sys/dev/usb/usb_hub.c
+++ b/sys/dev/usb/usb_hub.c
@@ -1088,6 +1088,21 @@
if (err != USB_ERR_NORMAL_COMPLETION)
retval = err;
}
+ if (udev->speed == USB_SPEED_SUPER &&
+ (sc->sc_st.port_change & UPS_C_BH_PORT_RESET) != 0) {
+ DPRINTF("Warm reset finished on port %u.\n", portno);
+ err = usbd_req_clear_port_feature(
+ udev, NULL, portno, UHF_C_BH_PORT_RESET);
+ if (err != USB_ERR_NORMAL_COMPLETION)
+ retval = err;
+ }
+ if (sc->sc_st.port_change & UPS_C_PORT_RESET) {
+ DPRINTF("Port reset finished on port %u.\n", portno);
+ err = usbd_req_clear_port_feature(
+ udev, NULL, portno, UHF_C_PORT_RESET);
+ if (err != USB_ERR_NORMAL_COMPLETION)
+ retval = err;
+ }
if (uhub_explore_sub(sc, up) == USB_ERR_NORMAL_COMPLETION) {
/* explore succeeded - reset restart counter */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 16, 12:38 PM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15825558
Default Alt Text
D35483.diff (899 B)
Attached To
Mode
D35483: XHCI: clear warm and port reset
Attached
Detach File
Event Timeline
Log In to Comment