Merge branch 'net-stmmac-sti-cleanups'
authorJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:31:10 +0000 (18:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:31:10 +0000 (18:31 -0700)
commitda59ceed5ab999034d0955a461b7c9573d809daa
treee907b1407c64acb0d51f4b26d0f308b8b127fe6a
parent49593c298cf7f5dd360f029356bcbbcbff406d6f
parentb3334f9f708cb27b9ae68f818e1424458f50497c
Merge branch 'net-stmmac-sti-cleanups'

Russell King says:

====================
net: stmmac: sti cleanups

Clean up the STI platform glue code.

- IS_PHY_IF_MODE_RGMII() is just a duplicate for
  phy_interface_mode_is_rgmii(), so use the generic version that we
  already have.

- add init/exit functions that call clk_prepare_enable(),
  sti_dwmac_set_mode() and clk_disable_unprepare() as appropriate,
  converting to devm_stmmac_pltfr_probe().

- the custom suspend/resume ops do basically what the generic ones
  do with init/exit functions populated, but also add runtime and
  noirq ops. Update STI to use the generic ops.
====================

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