From 924519a16d4bedc3dc78c3a081ae83be1c8d5333 Mon Sep 17 00:00:00 2001 From: Harry Hong Date: Fri, 18 Jul 2014 16:17:00 +0900 Subject: 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 Reviewed-on: http://git-master/r/439717 --- drivers/regulator/palmas-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ®); + ret = palmas_smps_read(pmic->palmas, PALMAS_SMPS10_CTRL, ®); if (ret < 0) { dev_err(pmic->palmas->dev, "Error in reading smps10 status reg\n"); -- cgit v1.2.3