]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: move timestamping/ptp init to stmmac_hw_setup() caller
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 11 Sep 2025 11:10:28 +0000 (12:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 14 Sep 2025 19:01:26 +0000 (12:01 -0700)
commit98d8ea566b85c41a6f32ea38bb91b35f0ac73c1e
tree16d2727ac9baa956af5214d82d86fc33914fa366
parent9d5059228c55c8d05590830468f5e1cb90440a41
net: stmmac: move timestamping/ptp init to stmmac_hw_setup() caller

Move the call to stmmac_init_timestamping() or stmmac_setup_ptp() out
of stmmac_hw_setup() to its caller after stmmac_hw_setup() has
successfully completed. This slightly changes the ordering during
setup, but should be safe to do.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c