From 0337983597e75a5735fa32293b5dbe95ff58d778 Mon Sep 17 00:00:00 2001 From: Nicholas Troast Date: Thu, 1 Jun 2017 15:07:24 -0700 Subject: 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 --- drivers/power/supply/qcom/smb138x-charger.c | 7 ------- 1 file changed, 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; } -- cgit v1.2.3