aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-12-23 10:54:42 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2021-01-12 16:44:02 +0000
commit92b2a4deed657a389cdbf91d92ab20ae6996989c (patch)
treefd3915e2f835d6061ae82ddb0b07589d14173744
parent8d9bc45628bbb7200dd5e41e3a44119405307842 (diff)
downloadsrc-92b2a4deed657a389cdbf91d92ab20ae6996989c.tar.gz
src-92b2a4deed657a389cdbf91d92ab20ae6996989c.zip
MFC 1622a498525b:
No need to stop XHCI endpoints in disabled state. Some AMD XHCI implementations apparently assert a permanent internal failure if this happens. Submitted by: ali.abdallah@suse.com PR: 251503 Sponsored by: Mellanox Technologies // NVIDIA Networking
-rw-r--r--sys/dev/usb/controller/xhci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
index 2bdb77f4ad25..70a73dcc94c4 100644
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -3896,6 +3896,8 @@ xhci_configure_reset_endpoint(struct usb_xfer *xfer)
* endpoint context state diagram in the XHCI specification:
*/
switch (xhci_get_endpoint_state(udev, epno)) {
+ case XHCI_EPCTX_0_EPSTATE_DISABLED:
+ break;
case XHCI_EPCTX_0_EPSTATE_STOPPED:
break;
case XHCI_EPCTX_0_EPSTATE_HALTED: