summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2016-12-02 12:29:09 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-12-14 06:02:56 -0800
commitdba4c111137b1819538a314043760bf17092690f (patch)
treecf362d2c10382e77045bedf707bff534fec6b8d5 /common
parent87e8cd610313fa7fe902c2fd359ade18e6b22ef0 (diff)
downloadchrome-ec-dba4c111137b1819538a314043760bf17092690f.tar.gz
usb_pd_protocol: Force rediscovering identity on boot
This is useful with Apple's HDMI adapter, as the code that sends the discovery message will also swap vconn as required. BRANCH=none BUG=chromium:644663 TEST=On elm, S5. Plug adapter with power+HDMI. Switch on elm, display works. Change-Id: I21d47c69e2c7153a5d808dedcb1abe360ce3f5c0 Reviewed-on: https://chromium-review.googlesource.com/415698 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/usb_pd_protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 1055ed61c7..dd84d80cc8 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -2950,6 +2950,8 @@ static void dual_role_on(void)
#endif
pd[i].flags |= PD_FLAGS_CHECK_PR_ROLE |
PD_FLAGS_CHECK_DR_ROLE;
+
+ pd[i].flags |= PD_FLAGS_CHECK_IDENTITY;
}
pd_set_dual_role(PD_DRP_TOGGLE_ON);