Skip to contentSkip to conversation

net/ice: fix PTP init failed

PATCH Applied Simei Su 2 participants 2 messages Sep 20, 2022 Network drivers

lore
Share & tools
lore

Simei Su

author
#0 lore raw

PATCH 1/1 net/ice: fix PTP init failed

Because of share code update, "ice_ptp_init_phc" API for E810/E822 depends on PHY configuration, not whether the device is E810 based. So before this API is called, assign specific value to phy cfg.

Fixes 646dcbe6c701 ("net/ice: support IEEE 1588 PTP")
---
 drivers/net/ice/ice_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/ice/ice_ethdev.c +5 -0
index 50fe23f..d64ecc7 100644
@@ -5768,6 +5768,11 @@ ice_timesync_enable(struct rte_eth_dev *dev)
 		return -1;
 	}
 
+	if (ice_is_e810(hw))
+		hw->phy_cfg = ICE_PHY_E810;
+	else
+		hw->phy_cfg = ICE_PHY_E822;
+
 	if (hw->func_caps.ts_func_info.src_tmr_owned) {
 		ret = ice_ptp_init_phc(hw);
 		if (ret) {
Signature · 1 line
2.9.5
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Su, Simei <[email protected]>
Sent: Tuesday, September 20, 2022 8:14 AM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: [email protected]; Su, Simei <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix PTP init failed

Quoted 8 lines

Because of share code update, "ice_ptp_init_phc" API for E810/E822 depends on PHY configuration, not whether the device is E810 based. So before this API is called, assign specific value to phy cfg.

Fixes 646dcbe6c701 ("net/ice: support IEEE 1588 PTP")

Applied to dpdk-next-net-intel.

Thanks
Qi