From 3e89bd5d243906fe0a7fa1560edb555484bdb5e5 Mon Sep 17 00:00:00 2001 From: Harry Yang Date: Tue, 12 Sep 2017 11:15:04 -0700 Subject: [PATCH] power: smblib: correct PD voting when inactive Currently, when becoming inactive, PD leaves the HDC and input limited interrupt enabled. Correct it by disabling it. Change-Id: I62a1d837f6126951cb428a982fe1d8876f1d5bdc Signed-off-by: Harry Yang --- drivers/power/supply/qcom/smb-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/qcom/smb-lib.c b/drivers/power/supply/qcom/smb-lib.c index f9d35ea7775b..b3c2b67abfde 100644 --- a/drivers/power/supply/qcom/smb-lib.c +++ b/drivers/power/supply/qcom/smb-lib.c @@ -2772,7 +2772,7 @@ int smblib_set_prop_pd_active(struct smb_charger *chg, hvdcp = stat & QC_CHARGER_BIT; vote(chg->apsd_disable_votable, PD_VOTER, false, 0); vote(chg->pd_allowed_votable, PD_VOTER, true, 0); - vote(chg->usb_irq_enable_votable, PD_VOTER, true, 0); + vote(chg->usb_irq_enable_votable, PD_VOTER, false, 0); vote(chg->hvdcp_disable_votable_indirect, PD_INACTIVE_VOTER, false, 0);