summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Troast <ntroast@codeaurora.org>2017-06-01 15:07:24 -0700
committerNicholas Troast <ntroast@codeaurora.org>2017-06-01 15:20:08 -0700
commit0337983597e75a5735fa32293b5dbe95ff58d778 (patch)
tree4df85fa4dfa1b3f49201b1b93f2078a70cfbccbe
parent840d1a232cfd67867a61a31ccc5d81c5c2192474 (diff)
power: qcom: smb138x-charger: do not enable parallel thermal regulation
USB connector HW based thermal regulation is active which will throttle the input current on USBIN-USBIN configurations. This was enabled for MID-MID configurations to enable the comparator output for USB connector temperature mitigation, but since the input is bypassed it does not throttle the input current. The comparator output is no longer used since the ADC values are used directly, so neither configuration needs this HW feature to be enabled. Remove the write to enable this HW feature. Change-Id: Ia7f6b3812ae222fbd8233d07dd6daa67e65ce08b Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
-rw-r--r--drivers/power/supply/qcom/smb138x-charger.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/power/supply/qcom/smb138x-charger.c b/drivers/power/supply/qcom/smb138x-charger.c
index 0ee53b100ae2..335b160e24a5 100644
--- a/drivers/power/supply/qcom/smb138x-charger.c
+++ b/drivers/power/supply/qcom/smb138x-charger.c
@@ -941,13 +941,6 @@ static int smb138x_init_slave_hw(struct smb138x *chip)
return rc;
}
- rc = smblib_write(chg, THERMREG_SRC_CFG_REG,
- THERMREG_SKIN_ADC_SRC_EN_BIT);
- if (rc < 0) {
- pr_err("Couldn't enable connector thermreg source rc=%d\n", rc);
- return rc;
- }
-
return 0;
}