diff options
| author | Hemant Kumar <hemantk@codeaurora.org> | 2017-05-16 11:23:21 -0700 |
|---|---|---|
| committer | Hemant Kumar <hemantk@codeaurora.org> | 2017-05-16 11:23:21 -0700 |
| commit | d4d30d382784ba8339950c12fef1ecd3a5b2bee4 (patch) | |
| tree | 8343c00fc263138c846cd7e3ca90d56438607096 | |
| parent | 75a9d0fee5b264c89afdc8b155848625fcbe9ca0 (diff) | |
usb: policy_engine: Close pd phy after exceeding SINK hard reset count
Exceeding sink hard reset count means no PD session active. Hence vote
to turn off PD phy regulator by closing the PD phy.
Change-Id: I2aaa3c9c7b651aec77e67139e3cdcbbf9437f091
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
| -rw-r--r-- | drivers/usb/pd/policy_engine.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/pd/policy_engine.c b/drivers/usb/pd/policy_engine.c index 055c6203577a..4190417b073c 100644 --- a/drivers/usb/pd/policy_engine.c +++ b/drivers/usb/pd/policy_engine.c @@ -1927,6 +1927,9 @@ static void usbpd_sm(struct work_struct *w) val.intval = 0; power_supply_set_property(pd->usb_psy, POWER_SUPPLY_PROP_PD_ACTIVE, &val); + + pd_phy_close(); + pd->pd_phy_opened = false; } break; |
