]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: intel: convert speed_mode_2500() to get_interfaces()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 1 May 2025 11:45:21 +0000 (12:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 May 2025 01:25:08 +0000 (18:25 -0700)
commitd3836052fe098798b7a61a59c0032da473d801c4
tree260496d81c91196bb7e30dda37a9197d94e9f39a
parent0f455d2d1bbe52e04261412991a9bdbf213e04a6
net: stmmac: intel: convert speed_mode_2500() to get_interfaces()

TGL platforms support either SGMII or 2500BASE-X, which is determined
by reading a SERDES register.

Thus, plat->phy_interface (and phylink's supported_interfaces) depend
on this. Use the new .get_interfaces() method to set both
plat->phy_interface and the supported_interfaces bitmap.

This removes the only user of the .speed_mode_2500() method.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1uASLx-0021Qs-Uz@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.h