Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: stmmac: socfpga: convert to use phy_interface

dwmac-socfpga uses MII, RMII, GMII, RGMII, SGMII and 1000BASE-X
interface modes, and supports the Lynx PCS. The Lynx PCS will only be
used for SGMII and 1000BASE-X modes, with the MAC programmed to use
GMII or MII mode to talk to the PCS. This suggests that the Synopsys
optional dwmac PCS is not present.

None of the DTS files set "mac-mode", so mac_interface will be
identical to phy_interface.

Convert dwmac-socfpga to use phy_interface when determining the
interface mode rather than mac_interface.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1uytpV-00000006H2R-2nA6@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Russell King (Oracle) and committed by
Jakub Kicinski
de696c63 9ff682b4

+1 -1
+1 -1
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
··· 234 234 235 235 static int socfpga_get_plat_phymode(struct socfpga_dwmac *dwmac) 236 236 { 237 - return dwmac->plat_dat->mac_interface; 237 + return dwmac->plat_dat->phy_interface; 238 238 } 239 239 240 240 static void socfpga_sgmii_config(struct socfpga_dwmac *dwmac, bool enable)