git: b199e55ce6d9 - stable/11 - No need to stop XHCI endpoints in disabled state.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Wed, 27 Apr 2022 19:18:03 UTC
The branch stable/11 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=b199e55ce6d9ec938933cb86fbad04fb064910d9

commit b199e55ce6d9ec938933cb86fbad04fb064910d9
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2020-12-23 10:54:42 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-04-27 19:17:40 +0000

    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
    
    (cherry picked from commit 1622a498525b4ef0d23d30a587b9a3888c3ee0d5)
---
 sys/dev/usb/controller/xhci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
index c2ef925d4fd3..cfe1b40fdbf8 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: