xhci_dbc_resume(xhci);
- if (retval == 0) {
- /*
- * Resume roothubs only if there are pending events.
- * USB 3 devices resend U3 LFPS wake after a 100ms delay if
- * the first wake signalling failed, give it that chance if
- * there are suspended USB 3 devices.
- */
- if (xhci->usb3_rhub.bus_state.suspended_ports ||
- xhci->usb3_rhub.bus_state.bus_suspended)
- suspended_usb3_devs = true;
+ /*
+ * Resume roothubs only if there are pending events.
+ * USB 3 devices resend U3 LFPS wake after a 100ms delay if
+ * the first wake signalling failed, give it that chance if
+ * there are suspended USB 3 devices.
+ */
+ if (xhci->usb3_rhub.bus_state.suspended_ports || xhci->usb3_rhub.bus_state.bus_suspended)
+ suspended_usb3_devs = true;
+ pending_portevent = xhci_pending_portevent(xhci);
+ if (suspended_usb3_devs && !pending_portevent && is_auto_resume) {
+ msleep(120);
pending_portevent = xhci_pending_portevent(xhci);
+ }
- if (suspended_usb3_devs && !pending_portevent && is_auto_resume) {
- msleep(120);
- pending_portevent = xhci_pending_portevent(xhci);
- }
-
- if (pending_portevent) {
- if (xhci->shared_hcd)
- usb_hcd_resume_root_hub(xhci->shared_hcd);
- usb_hcd_resume_root_hub(hcd);
- }
+ if (pending_portevent) {
+ if (xhci->shared_hcd)
+ usb_hcd_resume_root_hub(xhci->shared_hcd);
+ usb_hcd_resume_root_hub(hcd);
}
/*