diff options
author | Gaspare Bruno <gaspare@anlix.io> | 2021-01-13 18:03:39 -0300 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2022-04-19 14:48:21 +0200 |
commit | c652a06eefc03a69dfc509880313f44e44c7966a (patch) | |
tree | 9f01b18c45702288ad34f31a15f225a498597e95 /target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c | |
parent | 08ec622c465e2c6c0cc4ca577a794342882a0abd (diff) | |
download | upstream-c652a06eefc03a69dfc509880313f44e44c7966a.tar.gz upstream-c652a06eefc03a69dfc509880313f44e44c7966a.tar.bz2 upstream-c652a06eefc03a69dfc509880313f44e44c7966a.zip |
ramips: mt7620: enable autonegotiation for all ports
This enables autonegotiation for all ephy ports on probe.
Some devices do not configure the ports, particularly port 4.
Signed-off-by: Gaspare Bruno <gaspare@anlix.io>
[replace magic values ; reword commit message]
Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 0056ffb468f40f34bea006eb889b70c9a4f562e0)
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c index 451881fc73..0b09814cc8 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c @@ -171,6 +171,7 @@ static void mt7620_hw_init(struct mt7620_gsw *gsw, int mdio_mode) for (i = 0; i <= 4; i++) { val = _mt7620_mii_read(gsw, gsw->ephy_base + i, MII_BMCR); val &= ~BMCR_PDOWN; + val |= BMCR_ANRESTART | BMCR_ANENABLE | BMCR_SPEED100; _mt7620_mii_write(gsw, gsw->ephy_base + i, MII_BMCR, val); } } |