]> Git Repo - linux.git/commitdiff
power: supply: cpcap-charger: Keep trickle charger bits disabled
authorTony Lindgren <[email protected]>
Thu, 4 May 2017 00:15:32 +0000 (17:15 -0700)
committerSebastian Reichel <[email protected]>
Thu, 4 May 2017 15:52:00 +0000 (17:52 +0200)
Android does not seem to set the trickle charger bits, and these
seem to be only used by the bootloader when bringing up a
completely discharged battery. So let's keep the trickle charging
bits disabled and avoid misconfiguring the hardware.

Fixes: 0c9888e3c192 ("power: supply: cpcap-charger: Add minimal
CPCAP PMIC battery charger")
Cc: Marcel Partap <[email protected]>
Cc: Michael Scott <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
drivers/power/supply/cpcap-charger.c

index 378fbdaba85ba6548ed7b3564347fac6bc514db2..26a2dc7ac9a2777643ec2b3abda2e19af0b7ea50 100644 (file)
@@ -434,8 +434,7 @@ static void cpcap_usb_detect(struct work_struct *work)
 
                error = cpcap_charger_set_state(ddata,
                                                CPCAP_REG_CRM_VCHRG_4V35,
-                                               max_current,
-                                               CPCAP_REG_CRM_TR_0A72);
+                                               max_current, 0);
                if (error)
                        goto out_err;
        } else {
This page took 0.055351 seconds and 4 git commands to generate.