mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "usb: host: Fix unclocked access in xhci_suspend in case of pm suspend"
This commit is contained in:
commit
756bbb2594
1 changed files with 3 additions and 3 deletions
|
|
@ -1013,13 +1013,13 @@ int xhci_suspend(struct xhci_hcd *xhci, bool do_wakeup)
|
|||
xhci->shared_hcd->state != HC_STATE_SUSPENDED)
|
||||
return -EINVAL;
|
||||
|
||||
if (!HCD_HW_ACCESSIBLE(hcd))
|
||||
return 0;
|
||||
|
||||
/* Clear root port wake on bits if wakeup not allowed. */
|
||||
xhci_disable_hub_port_wake(xhci, &xhci->usb3_rhub, do_wakeup);
|
||||
xhci_disable_hub_port_wake(xhci, &xhci->usb2_rhub, do_wakeup);
|
||||
|
||||
if (!HCD_HW_ACCESSIBLE(hcd))
|
||||
return 0;
|
||||
|
||||
xhci_dbc_suspend(xhci);
|
||||
|
||||
/* Don't poll the roothubs on bus suspend. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue