diff options
author | Denis Brockus <dbrockus@google.com> | 2020-11-06 14:27:09 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-10 01:05:40 +0000 |
commit | 3b4177ddd41a6f39725b6fe80b0ad01bf1bf7cad (patch) | |
tree | 228f82836ccb02dd064871acfc309cbace582889 | |
parent | 191358533747137fc2d05c86bb56375cbc939c32 (diff) | |
download | chrome-ec-3b4177ddd41a6f39725b6fe80b0ad01bf1bf7cad.tar.gz |
genvif: XID_SOP
BUG=b:172424930,b:172842768
BRANCH=none
TEST=verify XML output
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Ib7734fca61b9169f718ce58aa15277251d2bd560
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2523383
Tested-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | util/genvif.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/util/genvif.c b/util/genvif.c index 1a3b3b4a26..caa7e29a89 100644 --- a/util/genvif.c +++ b/util/genvif.c @@ -1888,21 +1888,24 @@ static void init_vif_component_pd_dual_role_fields( static void init_vif_component_sop_discovery_fields( struct vif_field_t *vif_fields) { - if (IS_ENABLED(CONFIG_USB_PD_TCPMV2)) { - char hex_str[10]; + char hex_str[10]; - #if defined(CONFIG_USB_PID) - sprintf(hex_str, "%04X", CONFIG_USB_PID); - set_vif_field_itss(&vif_fields[PID_SOP], - "PID_SOP", - CONFIG_USB_PID, hex_str); - #else - sprintf(hex_str, "%04X", DEFAULT_MISSING_PID); - set_vif_field_itss(&vif_fields[PID_SOP], - "PID_SOP", - DEFAULT_MISSING_PID, hex_str); - #endif - } + set_vif_field(&vif_fields[XID_SOP], + "XID_SOP", + "0", + "0"); + + #if defined(CONFIG_USB_PID) + sprintf(hex_str, "%04X", CONFIG_USB_PID); + set_vif_field_itss(&vif_fields[PID_SOP], + "PID_SOP", + CONFIG_USB_PID, hex_str); + #else + sprintf(hex_str, "%04X", DEFAULT_MISSING_PID); + set_vif_field_itss(&vif_fields[PID_SOP], + "PID_SOP", + DEFAULT_MISSING_PID, hex_str); + #endif } /********************************************************************* |