summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2018-01-24 17:38:51 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-02-15 03:18:41 -0800
commit305d2bf0da42e087ec6004dd2b291bff99e989f4 (patch)
treec10b3b732f2b7e2e64347bc2d4a3fea9a1bd72e2
parent0ed13eb8521f96ca730bc690a818ee38fbf7ddef (diff)
regulator: qpnp-labibb: Don't handle LAB_VREG_OK in TTW mode for pmi8998
Currently for pmi8998, LAB_VREG_OK interrupt is handled to switch from PWM to PFM mode after a certain delay to improve efficiency. Also, PFM mode is kept disabled once the regulator is disabled. As per the hardware recommendation, keeping LAB in PWM mode is sufficient in particular when TTW mode is enabled. Hence do not register for LAB_VREG_OK interrupt in TTW mode so that this PWM <-> PFM mode transition will not be done. CRs-Fixed: 2179209 Change-Id: I499740d014a45e02b802d350248f8044a5b6596b Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org> Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>
-rw-r--r--drivers/regulator/qpnp-labibb-regulator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/regulator/qpnp-labibb-regulator.c b/drivers/regulator/qpnp-labibb-regulator.c
index 478c4630930b..42015f3274ed 100644
--- a/drivers/regulator/qpnp-labibb-regulator.c
+++ b/drivers/regulator/qpnp-labibb-regulator.c
@@ -2849,8 +2849,11 @@ static bool is_lab_vreg_ok_irq_available(struct qpnp_labibb *labibb)
return true;
if (labibb->pmic_rev_id->pmic_subtype == PMI8998_SUBTYPE &&
- labibb->mode == QPNP_LABIBB_LCD_MODE)
+ labibb->mode == QPNP_LABIBB_LCD_MODE) {
+ if (labibb->ttw_en)
+ return false;
return true;
+ }
return false;
}