From: John Crispin Date: Fri, 14 Nov 2014 16:52:47 +0000 (+0000) Subject: ralink: fix the 10mbit bug on mt7621 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bf8bb5b611e382a897ee8b7d5d02e3bbd47446e1;p=openwrt%2Fstaging%2Fldir.git 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 SVN-Revision: 43246 --- 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); }