summaryrefslogtreecommitdiff
path: root/common/usb_pd_alt_mode_dfp.c
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-05-08 03:09:41 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-09 19:28:05 +0000
commit6b90174eb1dd461ed336aa88b9f35a73767d0dd6 (patch)
tree197c98c87d8c524d3a33daae81395b1b8ef69267 /common/usb_pd_alt_mode_dfp.c
parent94492ef4046034935a1f8c6ac0887f2453c70151 (diff)
downloadchrome-ec-6b90174eb1dd461ed336aa88b9f35a73767d0dd6.tar.gz
usb_pd: Cleanup: Cable flags
Instead of using CABLE_FLAGS_SOP_PRIME_ENABLE and CABLE_FLAGS_SOP_PRIME_PRIME_ENABLE cable flags, add the type of message to be transmitted directly in the message header. BUG=b:148528713 BRANCH=none TEST=1. make buildall -j 2. Able to enter DP mode with Type-C dock and Type-C to DP connector. 3. Able to enter Thunderbolt-Compatible mode with thunderbolt dock with both Active and Passive cables. 4. Able to Enter USB4 mode with USB4 device with thunderbolt Gen2 cable. Change-Id: Ib0cac818200e7ab8f73cace85ffee65203019709 Signed-off-by: Ayushee <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2159592 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usb_pd_alt_mode_dfp.c')
-rw-r--r--common/usb_pd_alt_mode_dfp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_pd_alt_mode_dfp.c b/common/usb_pd_alt_mode_dfp.c
index 9fc6dfc5aa..e4a7eb294a 100644
--- a/common/usb_pd_alt_mode_dfp.c
+++ b/common/usb_pd_alt_mode_dfp.c
@@ -661,7 +661,7 @@ bool is_active_cable_element_retimer(int port)
* partner and cable identity discovery.
*/
void dfp_consume_cable_response(int port, int cnt, uint32_t *payload,
- uint16_t head)
+ uint32_t head)
{
struct pd_cable *cable = pd_get_cable_attributes(port);
struct pd_discovery *disc =