summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/drivers/usb/xhci.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/payloads/libpayload/drivers/usb/xhci.c b/payloads/libpayload/drivers/usb/xhci.c
index 2e70316ac7..8972ffaf1d 100644
--- a/payloads/libpayload/drivers/usb/xhci.c
+++ b/payloads/libpayload/drivers/usb/xhci.c
@@ -403,9 +403,12 @@ xhci_reinit (hci_t *controller)
xhci_post_command(xhci);
/* Wait for result in event ring */
- xhci_wait_for_command_done(xhci, cmd, 1);
- xhci_debug("Command ring is %srunning\n",
- (xhci->opreg->crcr_lo & CRCR_CRR) ? "" : "not ");
+ int cc = xhci_wait_for_command_done(xhci, cmd, 1);
+
+ xhci_debug("Command ring is %srunning: cc: %d\n",
+ (xhci->opreg->crcr_lo & CRCR_CRR) ? "" : "not ", cc);
+ if (cc != CC_SUCCESS)
+ xhci_debug("noop command failed.\n");
}
#endif
}