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:
Sultanxda 2016-09-24 13:46:09 -07:00 committed by codeworkx
parent 059a3189df
commit 3f14eeeba3

View file

@ -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",
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);
@ -2207,8 +2205,6 @@ static int dwc3_msm_resume(struct dwc3_msm *mdwc)
return 0;
}
pm_stay_awake(mdwc->dev);
/* Enable bus voting */
if (mdwc->bus_perf_client) {
mdwc->bus_vote = 1;