usb: dwc3-msm: Remove indefinite wakeup
Something is wrong with this wakeup; it isn't always relaxed, thus wreaking havoc on battery life. We already have a wakeup in smbcharger that is triggered on USB connection, so instead of fixing this one, just remove it since it's redundant.
This commit is contained in:
parent
059a3189df
commit
3f14eeeba3
1 changed files with 0 additions and 4 deletions
|
@ -2164,8 +2164,6 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc, bool hibernation)
|
||||||
dev_dbg(mdwc->dev, "defer suspend with %d(msecs)\n",
|
dev_dbg(mdwc->dev, "defer suspend with %d(msecs)\n",
|
||||||
mdwc->lpm_to_suspend_delay);
|
mdwc->lpm_to_suspend_delay);
|
||||||
pm_wakeup_event(mdwc->dev, mdwc->lpm_to_suspend_delay);
|
pm_wakeup_event(mdwc->dev, mdwc->lpm_to_suspend_delay);
|
||||||
} else {
|
|
||||||
pm_relax(mdwc->dev);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
atomic_set(&dwc->in_lpm, 1);
|
atomic_set(&dwc->in_lpm, 1);
|
||||||
|
@ -2207,8 +2205,6 @@ static int dwc3_msm_resume(struct dwc3_msm *mdwc)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
pm_stay_awake(mdwc->dev);
|
|
||||||
|
|
||||||
/* Enable bus voting */
|
/* Enable bus voting */
|
||||||
if (mdwc->bus_perf_client) {
|
if (mdwc->bus_perf_client) {
|
||||||
mdwc->bus_vote = 1;
|
mdwc->bus_vote = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue