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

Commit e99ab11f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: phy-msm-usb: restore bus bandwidth vote upon device bus resume"

parents a596cec9 dd4060cd
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1169,7 +1169,15 @@ static int msm_otg_resume(struct msm_otg *motg)
	}
	wake_lock(&motg->wlock);

	/* Some platforms require BUS vote to enable/disable clocks */
	/*
	 * If we are resuming from the device bus suspend, restore
	 * the max performance bus vote. Otherwise put a minimum
	 * bus vote to satisfy the requirement for enabling clocks.
	 */

	if (motg->device_bus_suspend && debug_bus_voting_enabled)
		msm_otg_bus_vote(motg, USB_MAX_PERF_VOTE);
	else
		msm_otg_bus_vote(motg, USB_MIN_PERF_VOTE);

	/* Vote for TCXO when waking up the phy */