[RFC 7/9] xHCI 1.0: Endpoint Not Enabled Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alex He <alex.he@xxxxxxx>

This patch handles an Endpoint Not Enabled Error described in section 4.7
of the xHCI spec v1.0.

Signed-off-by: Alex He <alex.he@xxxxxxx>
Signed-off-by: Andiry Xu <andiry.xu@xxxxxxx>
---
 drivers/usb/host/xhci-ring.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index d0b8c85..85503c1 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -2052,6 +2052,10 @@ static int handle_tx_event(struct xhci_hcd *xhci,
 	case COMP_BUFF_OVER:
 		xhci_warn(xhci, "WARN: buffer overrun event on endpoint\n");
 		break;
+	case COMP_EBADEP:
+		xhci_warn(xhci, "WARN: rung the doorbell owned by the endpoint\
+				or the Device Slot in the Disabled state\n");
+		goto cleanup;
 	case COMP_UNDERRUN:
 		/*
 		 * When the Isoch ring is empty, the xHC will generate
-- 
1.7.1



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux