123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- From a444877c10a665cd8a869e6d37facdb89fd95f79 Mon Sep 17 00:00:00 2001
- Message-ID: <a444877c10a665cd8a869e6d37facdb89fd95f79.1706070008.git.daniel@makrotopia.org>
- From: Daniel Golle <[email protected]>
- Date: Wed, 24 Jan 2024 04:17:11 +0000
- Subject: [PATCH net] net: dsa: mt7530: fix 10M/100M speed on MT7988 switch
- To: Arınç ÜNAL <[email protected]>,
- Daniel Golle <[email protected]>,
- DENG Qingfang <[email protected]>,
- Sean Wang <[email protected]>,
- Andrew Lunn <[email protected]>,
- Florian Fainelli <[email protected]>,
- Vladimir Oltean <[email protected]>,
- David S. Miller <[email protected]>,
- Eric Dumazet <[email protected]>,
- Jakub Kicinski <[email protected]>,
- Paolo Abeni <[email protected]>,
- Matthias Brugger <[email protected]>,
- AngeloGioacchino Del Regno <[email protected]>,
- [email protected],
- [email protected],
- [email protected],
- [email protected]
- Setup PMCR port register for actual speed and duplex on internally
- connected PHYs of the MT7988 built-in switch. This fixes links with
- speeds other than 1000M.
- Fixes: ("110c18bfed414 net: dsa: mt7530: introduce driver for MT7988 built-in switch")
- Signed-off-by: Daniel Golle <[email protected]>
- ---
- drivers/net/dsa/mt7530.c | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
- --- a/drivers/net/dsa/mt7530.c
- +++ b/drivers/net/dsa/mt7530.c
- @@ -2849,8 +2849,7 @@ static void mt753x_phylink_mac_link_up(s
- /* MT753x MAC works in 1G full duplex mode for all up-clocked
- * variants.
- */
- - if (interface == PHY_INTERFACE_MODE_INTERNAL ||
- - interface == PHY_INTERFACE_MODE_TRGMII ||
- + if (interface == PHY_INTERFACE_MODE_TRGMII ||
- (phy_interface_mode_is_8023z(interface))) {
- speed = SPEED_1000;
- duplex = DUPLEX_FULL;
|