mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
power: supply: cpcap-charger: Keep trickle charger bits disabled
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: 0c9888e3c1 ("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]>
This commit is contained in:
parent
6ffa8ace70
commit
35f4f99ccb
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue