summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-12-05 22:40:43 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-01-07 18:44:31 +0000
commit09ad65d4ad2409223c5778ee2807fb68e27bfc1d (patch)
treec5778efbda54d09f8040437c938c71bf5b4757af /include/usb_pd.h
parent140aa369049a616a4d07de1a0f3f4c946b11ac40 (diff)
downloadchrome-ec-09ad65d4ad2409223c5778ee2807fb68e27bfc1d.tar.gz
pd: fix bug when forcing port to sink
When changing a port that is sourcing power to a force sink role, then make sure VBUS is turned off before going to SNK_DISCONNECTED. BUG=chrome-os-partner:34036 BRANCH=samus TEST=test on plankton with samus. verify can change from source to sink multiple times with no problems Change-Id: I781f6f4395845f949d00b322e4e87c150aeba187 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/233755
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 0f080c24e0..b43d78464c 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -595,6 +595,7 @@ enum pd_states {
PD_STATE_SRC_SWAP_SNK_DISABLE,
PD_STATE_SRC_SWAP_SRC_DISABLE,
PD_STATE_SRC_SWAP_STANDBY,
+ PD_STATE_SRC_TO_FORCE_SINK,
#endif /* CONFIG_USB_PD_DUAL_ROLE */
PD_STATE_SOFT_RESET,