From 3b4177ddd41a6f39725b6fe80b0ad01bf1bf7cad Mon Sep 17 00:00:00 2001 From: Denis Brockus Date: Fri, 6 Nov 2020 14:27:09 -0700 Subject: genvif: XID_SOP BUG=b:172424930,b:172842768 BRANCH=none TEST=verify XML output Signed-off-by: Denis Brockus Change-Id: Ib7734fca61b9169f718ce58aa15277251d2bd560 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2523383 Tested-by: Denis Brockus Commit-Queue: Denis Brockus Reviewed-by: Keith Short --- util/genvif.c | 31 +++++++++++++++++-------------- 1 file 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 } /********************************************************************* -- cgit v1.2.1