Skip to contentSkip to conversation

octeontx-af: fix hardware timestamp configuration

PATCH In review Hariprasad Kelam 2 participants 2 messages Jul 4, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 octeontx-af: fix hardware timestamp configuration

MAC block on CN10K (RPM) supports hardware timestamp configuration. The previous patch which added timestamp configuration support has a bug. Though the netdev driver requests to disable timestamp configuration, the driver is always enabling it.

This patch fixes the same.

Fixes d1489208681d ("octeontx2-af: cn10k: RPM hardware timestamp configuration")

---
v2 * tag the patch to correct tree

 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c +1 -1
index 4b8559ac0404..095b2cc4a699 100644
@@ -763,7 +763,7 @@ static int rvu_cgx_ptp_rx_cfg(struct rvu *rvu, u16 pcifunc, bool enable)
 	cgxd = rvu_cgx_pdata(cgx_id, rvu);
 
 	mac_ops = get_mac_ops(cgxd);
-	mac_ops->mac_enadis_ptp_config(cgxd, lmac_id, true);
+	mac_ops->mac_enadis_ptp_config(cgxd, lmac_id, enable);
 	/* If PTP is enabled then inform NPC that packets to be
 	 * parsed by this PF will have their data shifted by 8 bytes
 	 * and if PTP is disabled then no shift is required

--
2.17.1

Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Hariprasad Kelam

MAC block on CN10K (RPM) supports hardware timestamp configuration. The previous patch which added timestamp configuration support has a bug. Though the netdev driver requests to disable timestamp configuration, the driver is always enabling it.

Quoted 7 lines

This patch fixes the same.

Fixes d1489208681d ("octeontx2-af: cn10k: RPM hardware timestamp configuration")

---
v2 * tag the patch to correct tree