]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'net-stmmac-yet-more-cleanups'
authorJakub Kicinski <kuba@kernel.org>
Thu, 25 Sep 2025 00:40:29 +0000 (17:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Sep 2025 00:40:29 +0000 (17:40 -0700)
Russell King says:

====================
net: stmmac: yet more cleanups

Building on the previous cleanup series, this cleans up yet more stmmac
code.

- Move stmmac_bus_clks_config() into stmmac_platform() which is where
  its onlny user is.

- Move the xpcs Clause 73 test into stmmac_init_phy(), resulting in
  simpler code in __stmmac_open().

- Move "can't attach PHY" error message into stmmac_init_phy().

We then start moving stuff out of __stmac_open() into stmmac_open()
(and correspondingly __stmmac_release() into stmmac_release()) which
is not necessary when re-initialising the interface on e.g. MTU change.

- Move initialisation of tx_lpi_timer
- Move PHY attachment/detachment
- Move PHY error message into stmmac_init_phy()

Finally, simplfy the paths in stmmac_init_phy().
====================

Link: https://patch.msgid.link/aNKDqqI7aLsuDD52@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge