From 2a00b5a4da9dce7c29141c6b97c721cde399aaee Mon Sep 17 00:00:00 2001 From: Kenny Kessler Date: Mon, 1 Jul 2019 15:10:30 -0500 Subject: [PATCH] power: qpnp-smbcharger-mmi: Disable PM660 JEITA JEITA Hard Limit is getting in the way of MOTO Charging Algorithm so disable it l(CR) other products do. Should be safe since it is the same changem as other products. Change-Id: I63c7a2897ab5dbe498fad30def258a9b1d3d6a9f Signed-off-by: Kenny Kessler Reviewed-on: https://gerrit.mot.com/1379724 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ryan Lattrel Reviewed-by: Cesar Augusto Marcelino dos Santos Reviewed-by: Kenneth Kessler Submit-Approved: Jira Key --- drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c b/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c index 93108ec67025..b009294712a9 100644 --- a/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c +++ b/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c @@ -3587,7 +3587,9 @@ static int smb_mmi_probe(struct platform_device *pdev) } if (chip->smb_version == PM8150B_SUBTYPE || - chip->smb_version == PMI632_SUBTYPE) { + chip->smb_version == PMI632_SUBTYPE || + chip->smb_version == PM660_SUBTYPE) { + mmi_err(chip, "DISABLE all QCOM JEITA\n"); /* Ensure SW JEITA is DISABLED */ pval.intval = 0; power_supply_set_property(chip->qcom_psy,