Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac62fc0a authored by Manu Gautam's avatar Manu Gautam Committed by Gerrit - the friendly Code Review server
Browse files

usb: dwc3-msm: Enable wakeup capability irrespective of wakeup_src



Driver currently disables HS and SS PHY async_irqs in host mode
if wakeup sources are not used. This affects wakeup of HUB if it
is selective suspended irrespective of system suspend state.
Also, on system_suspend SS host is anyways stopped and HS PHY works
fine across system suspend. Hence, enable PHYs async_irq in host bus
suspend unconditionally.

Change-Id: Ie814b7454240482c23703a072e8dcaba97fe1e26
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent a3dbc7bd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2158,10 +2158,9 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc)
	 * with DCP or during cable disconnect, we dont require wakeup
	 * using HS_PHY_IRQ or SS_PHY_IRQ. Hence enable wakeup only in
	 * case of host bus suspend and device bus suspend.
	 * In host mode if wakeup_sources are not used then don't enable.
	 */
	if ((mdwc->vbus_active && mdwc->otg_state == OTG_STATE_B_SUSPEND)
		  || (mdwc->in_host_mode && !mdwc->no_wakeup_src_in_hostmode)) {
			|| mdwc->in_host_mode) {
		enable_irq_wake(mdwc->hs_phy_irq);
		enable_irq(mdwc->hs_phy_irq);
		if (mdwc->ss_phy_irq) {