aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7
diff options
context:
space:
mode:
authorMatteo Croce <matteo@openwrt.org>2008-04-21 02:00:04 +0000
committerMatteo Croce <matteo@openwrt.org>2008-04-21 02:00:04 +0000
commit06c18b118f581b96ae3998f528ef2a35b6b75f53 (patch)
tree9868fbe06d999982ab4717e5275aece052c7f99d /target/linux/ar7
parent58f27d06dd19df6319343cad786e1c70fa495b37 (diff)
downloadupstream-06c18b118f581b96ae3998f528ef2a35b6b75f53.tar.gz
upstream-06c18b118f581b96ae3998f528ef2a35b6b75f53.tar.bz2
upstream-06c18b118f581b96ae3998f528ef2a35b6b75f53.zip
cpmac fix (closes #3124)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10896 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7')
-rw-r--r--target/linux/ar7/patches-2.6.24/170-cpmac_eth_fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar7/patches-2.6.24/170-cpmac_eth_fix.patch b/target/linux/ar7/patches-2.6.24/170-cpmac_eth_fix.patch
new file mode 100644
index 0000000000..b2af2544bb
--- /dev/null
+++ b/target/linux/ar7/patches-2.6.24/170-cpmac_eth_fix.patch
@@ -0,0 +1,14 @@
+diff -pruN linux-2.6.24.2.old/drivers/net/cpmac.c linux-2.6.24.2/drivers/net/cpmac.c
+--- linux-2.6.24.2.old/drivers/net/cpmac.c 2008-03-20 20:33:01.000000000 +0100
++++ linux-2.6.24.2/drivers/net/cpmac.c 2008-03-20 20:47:31.000000000 +0100
+@@ -1178,9 +1179,7 @@ static int __devinit cpmac_probe(struct
+ priv->msg_enable = netif_msg_init(debug_level, 0xff);
+ memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr));
+
+- snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, phy_id);
+-
+- priv->phy = phy_connect(dev, priv->phy_name, &cpmac_adjust_link, 0,
++ priv->phy = phy_connect(dev, cpmac_mii.phy_map[phy_id]->dev.bus_id, &cpmac_adjust_link, 0,
+ PHY_INTERFACE_MODE_MII);
+ if (IS_ERR(priv->phy)) {
+ if (netif_msg_drv(priv))