mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 20:04:01 +00:00
power: qpnp-smbcharger: unsuspend dc path during init
The dc path could be suspended while exiting the bootloader. Enable it again at initialization. CRs-Fixed: 883886 Change-Id: If25c0d8e4ed01d0c7637f1b06643a23cec330af4 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
parent
def14f8d07
commit
f001391cb0
1 changed files with 6 additions and 0 deletions
|
@ -6332,6 +6332,12 @@ static int smbchg_hw_init(struct smbchg_chip *chip)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* unsuspend dc path, it could be suspended by the bootloader */
|
||||||
|
rc = smbchg_dc_suspend(chip, 0);
|
||||||
|
if (rc < 0) {
|
||||||
|
dev_err(chip->dev, "Couldn't unspended dc path= %d\n", rc);
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
if (chip->force_aicl_rerun)
|
if (chip->force_aicl_rerun)
|
||||||
rc = smbchg_aicl_config(chip);
|
rc = smbchg_aicl_config(chip);
|
||||||
|
|
Loading…
Reference in a new issue