diff options
author | John Crispin <blogic@openwrt.org> | 2014-11-14 16:52:47 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-11-14 16:52:47 +0000 |
commit | 29830538135c8f2d8524c2b0c70ed176c3a2c1b3 (patch) | |
tree | b771a084db134ab1175ad145eaa700c69fb23b92 /target | |
parent | 7741062f9bf55ff255a77f46670c16d48378f6ed (diff) | |
download | upstream-29830538135c8f2d8524c2b0c70ed176c3a2c1b3.tar.gz upstream-29830538135c8f2d8524c2b0c70ed176c3a2c1b3.tar.bz2 upstream-29830538135c8f2d8524c2b0c70ed176c3a2c1b3.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43246 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-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 58c209857e..df85929d6d 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); } |