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:
Abhijeet Dharmapurikar 2015-08-03 12:11:45 -07:00 committed by Gerrit - the friendly Code Review server
parent def14f8d07
commit f001391cb0

View file

@ -6332,6 +6332,12 @@ static int smbchg_hw_init(struct smbchg_chip *chip)
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)
rc = smbchg_aicl_config(chip);