Provide a WA for missing PTP caps on Simics, this code shall be removed after cap reporting is fixed
Signed-off-by: Sergey Temerkhanov <sergey.temerkha...@intel.com> Signed-off-by: Qi Zhang <qi.z.zh...@intel.com> --- drivers/net/ice/base/ice_common.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index e22600c46d..cedce2dcf5 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -2516,7 +2516,12 @@ ice_parse_1588_func_caps(struct ice_hw *hw, struct ice_hw_func_caps *func_p, struct ice_aqc_list_caps_elem *cap) { struct ice_ts_func_info *info = &func_p->ts_func_info; - u32 number = LE32_TO_CPU(cap->number); + u32 number = ICE_TS_FUNC_ENA_M | ICE_TS_SRC_TMR_OWND_M | + ICE_TS_TMR_ENA_M | ICE_TS_TMR_IDX_OWND_M | + ICE_TS_TMR_IDX_ASSOC_M; + u8 clk_freq; + + ice_debug(hw, ICE_DBG_INIT, "1588 func caps: raw value %x\n", number); info->ena = ((number & ICE_TS_FUNC_ENA_M) != 0); func_p->common_cap.ieee_1588 = info->ena; -- 2.31.1