Skip to content

Commit 4c17483

Browse files
Russell King (Oracle)NipaLocal
authored andcommitted
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) <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 5e96e06 commit 4c17483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ static int sun8i_dwmac_set_syscon(struct device *dev,
974974
}
975975
}
976976

977-
switch (plat->mac_interface) {
977+
switch (plat->phy_interface) {
978978
case PHY_INTERFACE_MODE_MII:
979979
/* default */
980980
break;
@@ -989,7 +989,7 @@ static int sun8i_dwmac_set_syscon(struct device *dev,
989989
break;
990990
default:
991991
dev_err(dev, "Unsupported interface mode: %s",
992-
phy_modes(plat->mac_interface));
992+
phy_modes(plat->phy_interface));
993993
return -EINVAL;
994994
}
995995

0 commit comments

Comments
 (0)