|
@@ -612,6 +612,9 @@ static int xhci_enter_test_mode(struct xhci_hcd *xhci,
|
|
|
xhci_dbg(xhci, "Disable all slots\n");
|
|
|
spin_unlock_irqrestore(&xhci->lock, *flags);
|
|
|
for (i = 1; i <= HCS_MAX_SLOTS(xhci->hcs_params1); i++) {
|
|
|
+ if (!xhci->devs[i])
|
|
|
+ continue;
|
|
|
+
|
|
|
retval = xhci_disable_slot(xhci, NULL, i);
|
|
|
if (retval)
|
|
|
xhci_err(xhci, "Failed to disable slot %d, %d. Enter test mode anyway\n",
|