Skip to content

Commit 14bb236

Browse files
Hariprasad Kelamdavem330
authored andcommitted
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: d148920 ("octeontx2-af: cn10k: RPM hardware timestamp configuration") Signed-off-by: Hariprasad Kelam <[email protected]> Signed-off-by: Sunil Goutham <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 95c4184 commit 14bb236

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ static int rvu_cgx_ptp_rx_cfg(struct rvu *rvu, u16 pcifunc, bool enable)
763763
cgxd = rvu_cgx_pdata(cgx_id, rvu);
764764

765765
mac_ops = get_mac_ops(cgxd);
766-
mac_ops->mac_enadis_ptp_config(cgxd, lmac_id, true);
766+
mac_ops->mac_enadis_ptp_config(cgxd, lmac_id, enable);
767767
/* If PTP is enabled then inform NPC that packets to be
768768
* parsed by this PF will have their data shifted by 8 bytes
769769
* and if PTP is disabled then no shift is required

0 commit comments

Comments
 (0)