[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56f9cfec4d337c57e1cb1ea512a2fb404004757a.1597729692.git.landen.chao@mediatek.com>
Date: Tue, 18 Aug 2020 15:14:07 +0800
From: Landen Chao <landen.chao@...iatek.com>
To: <andrew@...n.ch>, <f.fainelli@...il.com>,
<vivien.didelot@...oirfairelinux.com>, <matthias.bgg@...il.com>,
<robh+dt@...nel.org>, <mark.rutland@....com>
CC: <devicetree@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
<linux-mediatek@...ts.infradead.org>, <davem@...emloft.net>,
<sean.wang@...iatek.com>, <opensource@...rst.com>,
<frank-w@...lic-files.de>, <dqfext@...il.com>,
Landen Chao <landen.chao@...iatek.com>
Subject: [PATCH net-next v2 2/7] net: dsa: mt7530: support full-duplex gigabit only
Remove 1000baseT_Half to advertise correct hardware capability in
phylink_validate() callback function.
Signed-off-by: Landen Chao <landen.chao@...iatek.com>
---
drivers/net/dsa/mt7530.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index 8dcb8a49ab67..0fd50798aa42 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -1501,7 +1501,7 @@ static void mt7530_phylink_validate(struct dsa_switch *ds, int port,
phylink_set(mask, 100baseT_Full);
if (state->interface != PHY_INTERFACE_MODE_MII) {
- phylink_set(mask, 1000baseT_Half);
+ /* MT7530 and MT7531 only support 1G full-duplex. */
phylink_set(mask, 1000baseT_Full);
if (port == 5)
phylink_set(mask, 1000baseX_Full);
--
2.17.1
Powered by blists - more mailing lists