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

Commit 2cf9b660 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

soc: pil-q6v5: Set the optimum current before disabling vreg_pll



In the cases where the regulator is always on, the RPM checks the
current requirement to put it into a low-power-mode. Set the
optimum requirement to 0 before disabling the regulator.

Change-Id: Icea5d0a81da5539bb5130022a92195af4c6f2eb5
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent b10b10df
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -130,8 +130,11 @@ EXPORT_SYMBOL(pil_q6v5_make_proxy_votes);
void pil_q6v5_remove_proxy_votes(struct pil_desc *pil)
{
	struct q6v5_data *drv = container_of(pil, struct q6v5_data, desc);
	if (drv->vreg_pll)

	if (drv->vreg_pll) {
		regulator_disable(drv->vreg_pll);
		regulator_set_optimum_mode(drv->vreg_pll, 0);
	}
	regulator_disable(drv->vreg_cx);
	regulator_set_optimum_mode(drv->vreg_cx, 0);
	regulator_set_voltage(drv->vreg_cx, RPM_REGULATOR_CORNER_NONE,