From ed6468ea4a476b98c797bf0ca10b27e28e4234cd Mon Sep 17 00:00:00 2001 From: Osvaldo Banuelos Date: Mon, 28 Mar 2016 10:31:18 -0700 Subject: [PATCH] regulator: cpr3-regulator: wait for SPM availability for CPRh controllers CPRh controllers communicate voltages to the PMIC via the SAW AVS interface similar to other controllers supporting hardware closed-loop operation. Ensure the SPM driver has probed and enabled the SAW AVS system. Change-Id: Ide2c4500cfdd0a9c684329ab5f7ac0603e4fc199 CRs-Fixed: 995686 Signed-off-by: Osvaldo Banuelos --- drivers/regulator/cpr3-regulator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/regulator/cpr3-regulator.c b/drivers/regulator/cpr3-regulator.c index 087b6a8364f8..a4f51489f764 100644 --- a/drivers/regulator/cpr3-regulator.c +++ b/drivers/regulator/cpr3-regulator.c @@ -5839,8 +5839,7 @@ int cpr3_regulator_register(struct platform_device *pdev, } } - if (ctrl->supports_hw_closed_loop && ctrl->ctrl_type != - CPR_CTRL_TYPE_CPRH) { + if (ctrl->supports_hw_closed_loop) { rc = msm_spm_probe_done(); if (rc) { if (rc != -EPROBE_DEFER)