aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm47xx')
-rw-r--r--target/linux/brcm47xx/patches-3.6/750-bgmac.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/patches-3.6/750-bgmac.patch b/target/linux/brcm47xx/patches-3.6/750-bgmac.patch
index 13698dbf74..7668ad38b7 100644
--- a/target/linux/brcm47xx/patches-3.6/750-bgmac.patch
+++ b/target/linux/brcm47xx/patches-3.6/750-bgmac.patch
@@ -608,7 +608,7 @@
+ if (bgmac->phyaddr == BGMAC_PHY_NOREGS)
+ return;
+
-+ if (bgmac->autoneg)
++ if (!bgmac->autoneg)
+ return;
+
+ /* Adv selected 10/100 speeds */
@@ -1097,13 +1097,13 @@
+ case SIOCGMIIREG:
+ if (!netif_running(net_dev))
+ return -EAGAIN;
-+ data->val_out = bgmac_phy_read(bgmac, bgmac->phyaddr,
++ data->val_out = bgmac_phy_read(bgmac, data->phy_id,
+ data->reg_num & 0x1f);
+ return 0;
+ case SIOCSMIIREG:
+ if (!netif_running(net_dev))
+ return -EAGAIN;
-+ bgmac_phy_write(bgmac, bgmac->phyaddr, data->reg_num & 0x1f,
++ bgmac_phy_write(bgmac, data->phy_id, data->reg_num & 0x1f,
+ data->val_in);
+ return 0;
+ default: