summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Hong <hhong@nvidia.com>2014-07-18 16:17:00 +0900
committerHarry Hong <hhong@nvidia.com>2014-07-20 18:52:58 -0700
commit924519a16d4bedc3dc78c3a081ae83be1c8d5333 (patch)
tree5feeb10ce990d9867c67ebb4e12cbe7375c9ec29
parentcae91c0029ac9d5f8bf4fcd8282139300a6f0d95 (diff)
regulator: palmas: change smps10_is_enabled logic
In order to check smps10_out1 enabling, read smps10_ctrl instead of smps10_status. In factory line, few board has no smps10_out1 output. dc driver definitely enable smps10_out1 during booting and disable/re-enable at suspend/resume. No repro in SQA side and no chance to get the additional log to identify this issue. So, apply this change for the possible cause of it because smps10_out1 will not be enabled if smps10_status reports true. Bug 200008754 Change-Id: Icc39f1662ee274fbf2d6154811603cb3e7d12984 Signed-off-by: Harry Hong <hhong@nvidia.com> Reviewed-on: http://git-master/r/439717
-rw-r--r--drivers/regulator/palmas-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
index af7beddc74bf..1b00d8488ef2 100644
--- a/drivers/regulator/palmas-regulator.c
+++ b/drivers/regulator/palmas-regulator.c
@@ -590,7 +590,7 @@ static int palmas_is_enabled_smps10(struct regulator_dev *dev)
if (EXT_PWR_REQ & pmic->roof_floor[id])
return true;
- ret = palmas_smps_read(pmic->palmas, PALMAS_SMPS10_STATUS, &reg);
+ ret = palmas_smps_read(pmic->palmas, PALMAS_SMPS10_CTRL, &reg);
if (ret < 0) {
dev_err(pmic->palmas->dev,
"Error in reading smps10 status reg\n");