]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: meson8b: use stmmac_get_phy_intf_sel()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 10 Nov 2025 14:42:53 +0000 (14:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Nov 2025 01:53:18 +0000 (17:53 -0800)
commitda3d1501235df39d9f2db092ac8592eb6f7c52b1
treed1ed6d7ad0a36abd3325715cf552e6c254cff6c0
parent52d639da6feea3c8787a60b1efb534bd48ea053d
net: stmmac: meson8b: use stmmac_get_phy_intf_sel()

Use stmmac_get_phy_intf_sel() to decode the PHY interface mode to the
phy_intf_sel value, validate the result and use that to set the
control register to select the operating mode for the DWMAC core.

Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vIT6b-0000000DpPX-1LQ0@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c