aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHector Martin <marcan@marcan.st>2023-10-29 15:37:43 +0900
committerMarek Vasut <marex@denx.de>2023-12-01 14:06:04 +0100
commit2fd7037122a920ae22377b06aa5b32651cc71f13 (patch)
tree1046b822213afe34869f68ce6614eb708ba504cc /drivers
parentfb5502be2544f9c3a7f662e6618e26f0831d242d (diff)
downloadu-boot-2fd7037122a920ae22377b06aa5b32651cc71f13.zip
u-boot-2fd7037122a920ae22377b06aa5b32651cc71f13.tar.gz
u-boot-2fd7037122a920ae22377b06aa5b32651cc71f13.tar.bz2
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> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers')
-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 a969eaf..ae0ab57 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -494,8 +494,9 @@ union xhci_trb *xhci_wait_for_event(struct xhci_ctrl *ctrl, trb_type expected)
if (expected == TRB_TRANSFER)
return NULL;
- printf("XHCI timeout on event type %d... cannot recover.\n", expected);
- BUG();
+ printf("XHCI timeout on event type %d...\n", expected);
+
+ return NULL;
}
/*