stmmac: intel: Enable correction of MAC propagation delay
authorKurt Kanzenbach <kurt@linutronix.de>
Fri, 18 Aug 2023 11:14:01 +0000 (13:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Aug 2023 18:23:07 +0000 (19:23 +0100)
commit58f2ffdedf7b05b318f2cdafaca69e4435c8478e
tree654b8e2fe90a8bba034e4fa29ffa0f21fc8d04e4
parent4025d3e73abde4f65f4b04d4b1d8449b00e31473
stmmac: intel: Enable correction of MAC propagation delay

All captured timestamps should be corrected by PHY, MAC and CDC introduced
latency/errors. The CDC correction is already used. Enable MAC propagation delay
correction as well which is available since commit 26cfb838aa00 ("net: stmmac:
correct MAC propagation delay").

Before:
|ptp4l[390.458]: rms    7 max   21 freq   +177 +/-  14 delay   357 +/-   1

After:
|ptp4l[620.012]: rms    7 max   20 freq   +195 +/-  14 delay   345 +/-   1

Tested on Intel Elkhart Lake.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Johannes Zink <j.zink@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c