]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: disable PTP clock after unregistering PTP
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 11 Sep 2025 11:09:42 +0000 (12:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 14 Sep 2025 19:00:57 +0000 (12:00 -0700)
commit99a8789afd1251f3b712f412661770e702ec7dbd
tree55a1be1162a1d520a90775624e583c7f06770f90
parent9a1d6fa0012dc998ceebab64bd6cb95e807185d3
net: stmmac: disable PTP clock after unregistering PTP

Follow the principle of unpublish from userspace and then teardown
resources.

Disable the PTP clock only after unregistering with the PTP subsystem,
which ensures that we only stop the clock that ticks the timesource
after we have removed the PTP device.

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