patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] net/ice: fix PTP init failed
@ 2022-09-20  0:14 Simei Su
  2022-09-20  0:51 ` Zhang, Qi Z
  0 siblings, 1 reply; 2+ messages in thread
From: Simei Su @ 2022-09-20  0:14 UTC (permalink / raw)
  To: qi.z.zhang, qiming.yang; +Cc: dev, Simei Su, stable

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")
Cc: stable@dpdk.org

Signed-off-by: Simei Su <simei.su@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 50fe23f..d64ecc7 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -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) {
-- 
2.9.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [PATCH] net/ice: fix PTP init failed
  2022-09-20  0:14 [PATCH] net/ice: fix PTP init failed Simei Su
@ 2022-09-20  0:51 ` Zhang, Qi Z
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang, Qi Z @ 2022-09-20  0:51 UTC (permalink / raw)
  To: Su, Simei, Yang, Qiming; +Cc: dev, stable



> -----Original Message-----
> From: Su, Simei <simei.su@intel.com>
> Sent: Tuesday, September 20, 2022 8:14 AM
> To: Zhang, Qi Z <qi.z.zhang@intel.com>; Yang, Qiming
> <qiming.yang@intel.com>
> Cc: dev@dpdk.org; Su, Simei <simei.su@intel.com>; stable@dpdk.org
> Subject: [PATCH] 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")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Simei Su <simei.su@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-20  0:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20  0:14 [PATCH] net/ice: fix PTP init failed Simei Su
2022-09-20  0:51 ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).