]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: rk: use PHY_INTF_SEL_x in functions
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 13 Nov 2025 17:46:50 +0000 (17:46 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Nov 2025 02:33:57 +0000 (18:33 -0800)
commit1188741cb5a29187a93ee908274f7034e81486f6
tree4a6c1b384c63224922e211a85602f04719f14c9f
parent5e37047f745b1a705ba7a1b580b5e5fe2bfd5993
net: stmmac: rk: use PHY_INTF_SEL_x in functions

Rather than defining one xxx_GMAC_PHY_INTF_SEL_xxx() for each mode,
define xxx_GMAC_PHY_INTF_SEL() which takes the phy_intf_sel value.
Pass the appropriate value into these new macros in the set_to_xxx()
methods.

No change to produced code on aarch64.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1vJbPG-0000000EBqb-2cF2@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c