Skip to content

Commit

Permalink
power: supply: cpcap-charger: Keep trickle charger bits disabled
Browse files Browse the repository at this point in the history
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: 0c9888e ("power: supply: cpcap-charger: Add minimal
CPCAP PMIC battery charger")
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
  • Loading branch information
tmlind authored and sre committed May 4, 2017
1 parent 6ffa8ac commit 35f4f99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/power/supply/cpcap-charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 35f4f99

Please sign in to comment.