summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2016-12-02 12:26:24 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2016-12-15 15:51:30 +0000
commite78d07cc81434e0a0924b4c7893dd70a01731099 (patch)
treeee1b6ac696a9c419dde65b0d0a32a221697748d3 /include
parente399730027f298c8b74925034995103977b9c6cc (diff)
downloadchrome-ec-e78d07cc81434e0a0924b4c7893dd70a01731099.tar.gz
usb_pd_protocol: Rename PD_FLAGS_DATA_SWAPPED to _CHECK_IDENTITY
Rename the variable to actually tell us what it does (it sends a Discover Identity command), instead of littering the code with comments explaining why we set DATA_SWAPPED when the data roles have not really been swapped. BRANCH=none BUG=chromium:644663 TEST=make buildall -j Change-Id: Idbad38e48a55d6518ef82b32a4d96fee65264aae Reviewed-on: https://chromium-review.googlesource.com/415696 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/420778 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Aaron Durbin <adurbin@chromium.org> Tested-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 10b148af68..e322fed381 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -695,7 +695,7 @@ enum pd_states {
#define PD_FLAGS_PING_ENABLED (1 << 0) /* SRC_READY pings enabled */
#define PD_FLAGS_PARTNER_DR_POWER (1 << 1) /* port partner is dualrole power */
#define PD_FLAGS_PARTNER_DR_DATA (1 << 2) /* port partner is dualrole data */
-#define PD_FLAGS_DATA_SWAPPED (1 << 3) /* data swap complete */
+#define PD_FLAGS_CHECK_IDENTITY (1 << 3) /* discover identity in READY */
#define PD_FLAGS_SNK_CAP_RECVD (1 << 4) /* sink capabilities received */
#define PD_FLAGS_TCPC_DRP_TOGGLE (1 << 5) /* TCPC-controlled DRP toggling */
#define PD_FLAGS_EXPLICIT_CONTRACT (1 << 6) /* explicit pwr contract in place */
@@ -711,7 +711,7 @@ enum pd_states {
/* Flags to clear on a disconnect */
#define PD_FLAGS_RESET_ON_DISCONNECT_MASK (PD_FLAGS_PARTNER_DR_POWER | \
PD_FLAGS_PARTNER_DR_DATA | \
- PD_FLAGS_DATA_SWAPPED | \
+ PD_FLAGS_CHECK_IDENTITY | \
PD_FLAGS_SNK_CAP_RECVD | \
PD_FLAGS_TCPC_DRP_TOGGLE | \
PD_FLAGS_EXPLICIT_CONTRACT | \