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: sun8i: convert to use phy_interface

dwmac-sun8i supports MII, RMII and RGMII interface modes only. It
is unclear whether the dwmac core interface is different from the
one presented to the outside world.

However, as none of the DTS files set "mac-mode", mac_interface will
be identical to phy_interface.

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

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Link: https://patch.msgid.link/E1uytpl-00000006H2k-08pH@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Russell King (Oracle) and committed by
Jakub Kicinski
0fe080fa 0ca60c26

+2 -2
+2 -2
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
··· 974 974 } 975 975 } 976 976 977 - switch (plat->mac_interface) { 977 + switch (plat->phy_interface) { 978 978 case PHY_INTERFACE_MODE_MII: 979 979 /* default */ 980 980 break; ··· 989 989 break; 990 990 default: 991 991 dev_err(dev, "Unsupported interface mode: %s", 992 - phy_modes(plat->mac_interface)); 992 + phy_modes(plat->phy_interface)); 993 993 return -EINVAL; 994 994 } 995 995