Merge "USB: dwc3-msm: clear in_restart flag always in restart work"
This commit is contained in:
commit
97f41c5dcb
1 changed files with 2 additions and 3 deletions
|
@ -1465,11 +1465,10 @@ static void dwc3_restart_usb_work(struct work_struct *w)
|
|||
pm_runtime_suspend(mdwc->dev);
|
||||
}
|
||||
|
||||
mdwc->in_restart = false;
|
||||
/* Force reconnect only if cable is still connected */
|
||||
if (mdwc->vbus_active) {
|
||||
mdwc->in_restart = false;
|
||||
if (mdwc->vbus_active)
|
||||
dwc3_resume_work(&mdwc->resume_work);
|
||||
}
|
||||
|
||||
dwc->err_evt_seen = false;
|
||||
flush_delayed_work(&mdwc->sm_work);
|
||||
|
|
Loading…
Add table
Reference in a new issue