Skip to content

Commit df7699c

Browse files
joabreudavem330
authored andcommitted
net: stmmac: Do not cut down 1G modes
Some glue logic drivers support 1G without having GMAC/GMAC4/XGMAC. Let's allow this speed by default. Reported-by: Ondrej Jirman <[email protected]> Tested-by: Ondrej Jirman <[email protected]> Fixes: 5b0d7d7 ("net: stmmac: Add the missing speeds that XGMAC supports") Signed-off-by: Jose Abreu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 01ad7fa commit df7699c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -814,20 +814,15 @@ static void stmmac_validate(struct phylink_config *config,
814814
phylink_set(mac_supported, 10baseT_Full);
815815
phylink_set(mac_supported, 100baseT_Half);
816816
phylink_set(mac_supported, 100baseT_Full);
817+
phylink_set(mac_supported, 1000baseT_Half);
818+
phylink_set(mac_supported, 1000baseT_Full);
819+
phylink_set(mac_supported, 1000baseKX_Full);
817820

818821
phylink_set(mac_supported, Autoneg);
819822
phylink_set(mac_supported, Pause);
820823
phylink_set(mac_supported, Asym_Pause);
821824
phylink_set_port_modes(mac_supported);
822825

823-
if (priv->plat->has_gmac ||
824-
priv->plat->has_gmac4 ||
825-
priv->plat->has_xgmac) {
826-
phylink_set(mac_supported, 1000baseT_Half);
827-
phylink_set(mac_supported, 1000baseT_Full);
828-
phylink_set(mac_supported, 1000baseKX_Full);
829-
}
830-
831826
/* Cut down 1G if asked to */
832827
if ((max_speed > 0) && (max_speed < 1000)) {
833828
phylink_set(mask, 1000baseT_Full);

0 commit comments

Comments
 (0)