diff options
author | John Crispin <john@openwrt.org> | 2014-11-14 16:52:47 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-11-14 16:52:47 +0000 |
commit | bf8bb5b611e382a897ee8b7d5d02e3bbd47446e1 (patch) | |
tree | 116cf959dd093f3a95338f5f3a3b7339ba1e7f47 | |
parent | 194ca6127ee18cd3a95da4d03f02e43b5428c0bb (diff) | |
download | mtk-20170518-bf8bb5b611e382a897ee8b7d5d02e3bbd47446e1.zip mtk-20170518-bf8bb5b611e382a897ee8b7d5d02e3bbd47446e1.tar.gz mtk-20170518-bf8bb5b611e382a897ee8b7d5d02e3bbd47446e1.tar.bz2 |
ralink: fix the 10mbit bug on mt7621
a missing "val =" caused the AN bit in the phy0 reg to be flushed.
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 43246
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c index 58c2098..df85929 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c @@ -596,7 +596,7 @@ static void gsw_hw_init_mt7621(struct mt7620_gsw *gsw, struct device_node *np) /* turn off all PHYs */ for (i = 0; i <= 4; i++) { - _mt7620_mii_read(gsw, i, 0x0); + val = _mt7620_mii_read(gsw, i, 0x0); val |= (0x1 << 11); _mt7620_mii_write(gsw, i, 0x0, val); } |