From: Ian Stokes <ian.sto...@intel.com>

New flag for external topology devices for different types of versioning.

Signed-off-by: Dawid Zielinski <dawid.zielin...@intel.com>
Signed-off-by: Ian Stokes <ian.sto...@intel.com>
---
 drivers/net/ice/base/ice_common.c | 6 ++++++
 drivers/net/ice/base/ice_type.h   | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/drivers/net/ice/base/ice_common.c 
b/drivers/net/ice/base/ice_common.c
index 314d1bffb4..9b08a10022 100644
--- a/drivers/net/ice/base/ice_common.c
+++ b/drivers/net/ice/base/ice_common.c
@@ -2470,6 +2470,8 @@ ice_parse_common_caps(struct ice_hw *hw, struct 
ice_hw_common_caps *caps,
                        (phys_id & ICE_EXT_TOPO_DEV_IMG_LOAD_EN) != 0;
                caps->ext_topo_dev_img_prog_en[index] =
                        (phys_id & ICE_EXT_TOPO_DEV_IMG_PROG_EN) != 0;
+               caps->ext_topo_dev_img_ver_schema[index] =
+                       (phys_id & ICE_EXT_TOPO_DEV_IMG_VER_SCHEMA) != 0;
                ice_debug(hw, ICE_DBG_INIT,
                          "%s: ext_topo_dev_img_ver_high[%d] = %d\n",
                          prefix, index,
@@ -2490,6 +2492,10 @@ ice_parse_common_caps(struct ice_hw *hw, struct 
ice_hw_common_caps *caps,
                          "%s: ext_topo_dev_img_prog_en[%d] = %d\n",
                          prefix, index,
                          caps->ext_topo_dev_img_prog_en[index]);
+               ice_debug(hw, ICE_DBG_INIT,
+                         "%s: ext_topo_dev_img_ver_schema[%d] = %d\n",
+                         prefix, index,
+                         caps->ext_topo_dev_img_ver_schema[index]);
                break;
        }
        case ICE_AQC_CAPS_TX_SCHED_TOPO_COMP_MODE:
diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h
index c7ca62bea0..b2f093c84b 100644
--- a/drivers/net/ice/base/ice_type.h
+++ b/drivers/net/ice/base/ice_type.h
@@ -716,6 +716,8 @@ struct ice_hw_common_caps {
 #define ICE_EXT_TOPO_DEV_IMG_LOAD_EN   BIT(0)
        bool ext_topo_dev_img_prog_en[ICE_EXT_TOPO_DEV_IMG_COUNT];
 #define ICE_EXT_TOPO_DEV_IMG_PROG_EN   BIT(1)
+       bool ext_topo_dev_img_ver_schema[ICE_EXT_TOPO_DEV_IMG_COUNT];
+#define ICE_EXT_TOPO_DEV_IMG_VER_SCHEMA        BIT(2)
        bool tx_sched_topo_comp_mode_en;
 };
 
-- 
2.43.0

Reply via email to