summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOsvaldo Banuelos <osvaldob@codeaurora.org>2016-03-28 10:31:18 -0700
committerJeevan Shriram <jshriram@codeaurora.org>2016-04-05 11:29:05 -0700
commited6468ea4a476b98c797bf0ca10b27e28e4234cd (patch)
tree2aeee3b869e7fbd71facca4b85b3b651a22767fb
parent668a7726758e7cc43b28fe1b723f55db652271fb (diff)
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 <osvaldob@codeaurora.org>
-rw-r--r--drivers/regulator/cpr3-regulator.c3
1 files changed, 1 insertions, 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)