summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLanden Chao <landen.chao@mediatek.com>2020-08-27 17:15:47 +0800
committerDavid S. Miller <davem@davemloft.net>2020-08-28 06:54:06 -0700
commitf272285f6abb9178d029375599626baf3d5f4e8a (patch)
treee0e305a57e4ad2cfadfcb42bd1501b0aa8c93502 /drivers
parent174bce38caf18b47816f352156fab926f4fe072a (diff)
downloadlinux-stable-f272285f6abb9178d029375599626baf3d5f4e8a.tar.gz
linux-stable-f272285f6abb9178d029375599626baf3d5f4e8a.tar.bz2
linux-stable-f272285f6abb9178d029375599626baf3d5f4e8a.zip
net: dsa: mt7530: fix advertising unsupported 1000baseT_Half
Remove 1000baseT_Half to advertise correct hardware capability in phylink_validate() callback function. Fixes: 38f790a80560 ("net: dsa: mt7530: Add support for port 5") Signed-off-by: Landen Chao <landen.chao@mediatek.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dsa/mt7530.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index 4b4701c69fe1..e044d9e8d016 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -1504,7 +1504,7 @@ unsupported:
phylink_set(mask, 100baseT_Full);
if (state->interface != PHY_INTERFACE_MODE_MII) {
- phylink_set(mask, 1000baseT_Half);
+ /* This switch only supports 1G full-duplex. */
phylink_set(mask, 1000baseT_Full);
if (port == 5)
phylink_set(mask, 1000baseX_Full);