Skip to content

Commit 14f3473

Browse files
joabreudavem330
authored andcommitted
net: stmmac: Correctly take timestamp for PTPv2
The case for PTPV2_EVENT requires event packets to be captured so add this setting to the list of enabled captures. Fixes: 891434b ("stmmac: add IEEE PTPv1 and PTPv2 support.") Signed-off-by: Jose Abreu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f79bfda commit 14f3473

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ static int stmmac_hwtstamp_set(struct net_device *dev, struct ifreq *ifr)
629629
config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;
630630
ptp_v2 = PTP_TCR_TSVER2ENA;
631631
snap_type_sel = PTP_TCR_SNAPTYPSEL_1;
632+
ts_event_en = PTP_TCR_TSEVNTENA;
632633
ptp_over_ipv4_udp = PTP_TCR_TSIPV4ENA;
633634
ptp_over_ipv6_udp = PTP_TCR_TSIPV6ENA;
634635
ptp_over_ethernet = PTP_TCR_TSIPENA;

0 commit comments

Comments
 (0)