diff options
author | Caveh Jalali <caveh@chromium.org> | 2019-10-30 22:51:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-07 16:21:39 +0000 |
commit | b76871fce86d8d89e7d1d8e951bae4e9b392d150 (patch) | |
tree | 3aa45929d6e40f9737a59b3cc380f812fbb6e85b /common | |
parent | f089e6f80540559fd441977e78d83169a7f9ffe7 (diff) | |
download | chrome-ec-b76871fce86d8d89e7d1d8e951bae4e9b392d150.tar.gz |
usb_pd_protocol: disable vconn on pd_suspend
this disables VCONN on a port before we start the TCPC firmware update.
BUG=b:143330980
BRANCH=none
TEST=tested TCPC firmware update on atlas
Change-Id: I2b0b8d52d637acf5b7adfdc37ef4ae4871054f5b
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1899077
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_pd_protocol.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 1935fca6bd..c751b02689 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -3843,6 +3843,9 @@ void pd_task(void *u) pd_power_supply_reset(port); #else pd_power_supply_reset(port); +#ifdef CONFIG_USBC_VCONN + set_vconn(port, 0); +#endif rstatus = tcpm_release(port); if (rstatus != 0 && rstatus != EC_ERROR_UNIMPLEMENTED) CPRINTS("TCPC p%d release failed!", port); |