summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2021-02-19 09:34:03 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-24 20:35:29 +0000
commit06e96e94080d3047dcf0737db8350174dc5f5f58 (patch)
tree28b5859daa806362d2dac7c739f67ca578f75e17
parente50160404dec9cf520097eeabf9f6abfc6a7ab10 (diff)
downloadchrome-ec-06e96e94080d3047dcf0737db8350174dc5f5f58.tar.gz
TCPMv2: VOLTEER: Correctly set ID Header VDO
When responding to a DiscId message, return the ID Header VDO with the USB Communications Capable as a USB Device bit to zero and the Product Type(UFP) bits to 000b. BUG=b:173028252 BRANCH=none TEST=Passes TD.PD.VNDI.E1 VDM Identity Signed-off-by: Sam Hurst <shurst@google.org> Change-Id: I57a62db92eee0f63e081bdb9b6d49e6e3206a41c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2707252 Commit-Queue: Sam Hurst <shurst@google.com> Tested-by: Sam Hurst <shurst@google.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--baseboard/volteer/usb_pd_policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/baseboard/volteer/usb_pd_policy.c b/baseboard/volteer/usb_pd_policy.c
index 3d5e59212e..f246155867 100644
--- a/baseboard/volteer/usb_pd_policy.c
+++ b/baseboard/volteer/usb_pd_policy.c
@@ -89,14 +89,14 @@ static const union tbt_mode_resp_device vdo_tbt_modes[1] = {
static const uint32_t vdo_idh = VDO_IDH(
1, /* Data caps as USB host */
- 1, /* Data caps as USB device */
+ 0, /* Not a USB device */
IDH_PTYPE_PERIPH,
1, /* Supports alt modes */
USB_VID_GOOGLE);
static const uint32_t vdo_idh_rev30 = VDO_IDH_REV30(
1, /* Data caps as USB host */
- 1, /* Data caps as USB device */
+ 0, /* Not a USB device */
IDH_PTYPE_PERIPH,
1, /* Supports alt modes */
IDH_PTYPE_DFP_HOST,