]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: Fix PTP ref clock for Tegra234
authorJon Hunter <jonathanh@nvidia.com>
Wed, 1 Apr 2026 10:29:39 +0000 (11:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 23:02:21 +0000 (16:02 -0700)
commit1345e9f4e3f3bc7d8a0a2138ae29e205a857a555
treec7be753cf7b9c41c8f8679a0c2179c53399bb6b2
parent5c14a19d5b1645cce1cb1252833d70b23635b632
net: stmmac: Fix PTP ref clock for Tegra234

Since commit 030ce919e114 ("net: stmmac: make sure that ptp_rate is not
0 before configuring timestamping") was added the following error is
observed on Tegra234:

 ERR KERN tegra-mgbe 6800000.ethernet eth0: Invalid PTP clock rate
 WARNING KERN tegra-mgbe 6800000.ethernet eth0: PTP init failed

It turns out that the Tegra234 device-tree binding defines the PTP ref
clock name as 'ptp-ref' and not 'ptp_ref' and the above commit now
exposes this and that the PTP clock is not configured correctly.

In order to update device-tree to use the correct 'ptp_ref' name, update
the Tegra MGBE driver to use 'ptp_ref' by default and fallback to using
'ptp-ref' if this clock name is present.

Fixes: d8ca113724e7 ("net: stmmac: tegra: Add MGBE support")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260401102941.17466-2-jonathanh@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c