]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: move serdes power methods to stmmac_[open|release]()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 3 Feb 2026 10:01:29 +0000 (10:01 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Feb 2026 04:51:38 +0000 (20:51 -0800)
commit61aaa625371440938b55d703501f8820018f737e
tree1bd699a2adf679b032d5bbe92db4c5c55f52bf38
parent3019a1333e667ee7e1b6f7a236b5b4f81782870c
net: stmmac: move serdes power methods to stmmac_[open|release]()

Move the SerDes power up and down calls for the non-"after linkup"
case out of __stmmac_open() and __stmmac_release() into the
stmmac_open() and stmmac_release() methods, which means the SerDes
will only change power state on administrative changes or suspend/
resume, not while changing the interface MTU.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vnDDt-00000007XxF-3uUK@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c