summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-02-19 14:38:35 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-02-20 12:07:03 +0100
commit43a3850ed8407b7c422d05f6044129946823aae7 (patch)
treed5062105e380e2a8256906b3a7c99d7674f83178
parent42db38526b2c8c6d5f6a2825770786ed44b6a678 (diff)
downloadbarebox-43a3850ed840.tar.gz
barebox-43a3850ed840.tar.xz
usb: xhci: Do not panic on event timeouts
This ports U-Boot commit 2fd7037122a920ae22377b06aa5b32651cc71f13: | Author: Hector Martin <marcan@marcan.st> | AuthorDate: Sun Oct 29 15:37:43 2023 +0900 | | usb: xhci: Do not panic on event timeouts | | Now that we always check the return value, just return NULL on timeouts. | We can still log the error since this is a problem, but it's not reason | to panic. | | Signed-off-by: Hector Martin <marcan@marcan.st> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240219133835.3886399-16-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/usb/host/xhci-ring.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 6a859dbbfa..5f68bc7c2f 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -497,8 +497,9 @@ union xhci_trb *xhci_wait_for_event(struct xhci_ctrl *ctrl, trb_type expected,
if (expected == TRB_TRANSFER)
return NULL;
- dev_err(ctrl->dev, "XHCI timeout on event type %d... cannot recover.\n", expected);
- BUG();
+ dev_warn(ctrl->dev, "XHCI timeout on event type %d...\n", expected);
+
+ return NULL;
}
/*