]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: add __stmmac_release() to complement __stmmac_open()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 11 Sep 2025 11:10:02 +0000 (12:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 14 Sep 2025 19:01:10 +0000 (12:01 -0700)
commit67ec43792b110540211485deb59e33839d8a2f5a
treeb3dda2d69862df895ae757c2b96f3ceb33215b4e
parentff2e19d5690e00396c897aa63f7fcf64eeec7c1b
net: stmmac: add __stmmac_release() to complement __stmmac_open()

Rename stmmac_release() to __stmmac_release(), providing a new
stmmac_release() method. Update stmmac_change_mtu() to use
__stmmac_release(). Move the runtime PM handling into stmmac_open()
and stmmac_release().

This avoids stmmac_change_mtu() needlessly fiddling with the runtime
PM state, and will allow future changes to remove code from
__stmmac_open() and __stmmac_release() that should only happen when
the net device is administratively brought up or down.

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