From 18abc31c7193ee2908b85a8344f12880e574963a Mon Sep 17 00:00:00 2001 From: Avaneesh Kumar Dwivedi Date: Wed, 4 May 2016 19:32:53 +0530 Subject: [PATCH] soc: qcom: pil-q6v5: Update cx_max to INT_MAX while voting for CX rail To support a higher GPU frequency on MSM8937 Pro target the CX rail expects TURBO_HIGH voltage level. So while requesting regulator voltage for CX rail request with max value set as INT_MAX. Change-Id: I47eb863c4b384bb12e2ff21c44104847b0baa7ee Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/soc/qcom/pil-q6v5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/pil-q6v5.c b/drivers/soc/qcom/pil-q6v5.c index 5752aecb82bd..e32049f9496c 100644 --- a/drivers/soc/qcom/pil-q6v5.c +++ b/drivers/soc/qcom/pil-q6v5.c @@ -149,7 +149,7 @@ err_vreg_pll: err_cx_enable: regulator_set_load(drv->vreg_cx, 0); err_cx_mode: - regulator_set_voltage(drv->vreg_cx, RPM_REGULATOR_CORNER_NONE, uv); + regulator_set_voltage(drv->vreg_cx, RPM_REGULATOR_CORNER_NONE, INT_MAX); err_cx_voltage: clk_disable_unprepare(drv->qdss_clk); err_qdss_vote: @@ -179,7 +179,7 @@ void pil_q6v5_remove_proxy_votes(struct pil_desc *pil) } regulator_disable(drv->vreg_cx); regulator_set_load(drv->vreg_cx, 0); - regulator_set_voltage(drv->vreg_cx, RPM_REGULATOR_CORNER_NONE, uv); + regulator_set_voltage(drv->vreg_cx, RPM_REGULATOR_CORNER_NONE, INT_MAX); clk_disable_unprepare(drv->xo); clk_disable_unprepare(drv->pnoc_clk); clk_disable_unprepare(drv->qdss_clk);