summaryrefslogtreecommitdiff
path: root/target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch
diff options
context:
space:
mode:
authorMatteo Croce <rootkit85@yahoo.it>2008-05-03 15:33:38 +0000
committerMatteo Croce <rootkit85@yahoo.it>2008-05-03 15:33:38 +0000
commit2036ae20560214b6e5ad64e519d86f298e5a9a7e (patch)
tree7002a746adb8c608c13f30e4e1aefe57491332f3 /target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch
parentb6b32f81318b4a370ead737a77e2da62b735803d (diff)
downloadmtk-20170518-2036ae20560214b6e5ad64e519d86f298e5a9a7e.zip
mtk-20170518-2036ae20560214b6e5ad64e519d86f298e5a9a7e.tar.gz
mtk-20170518-2036ae20560214b6e5ad64e519d86f298e5a9a7e.tar.bz2
ar7: 2.6.25.1 support
SVN-Revision: 11023
Diffstat (limited to 'target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch')
-rw-r--r--target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch b/target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch
new file mode 100644
index 0000000..c720794
--- /dev/null
+++ b/target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch
@@ -0,0 +1,15 @@
+Index: linux-2.6.25.1/drivers/net/cpmac.c
+===================================================================
+--- linux-2.6.25.1.orig/drivers/net/cpmac.c 2008-05-03 16:24:37.000000000 +0200
++++ linux-2.6.25.1/drivers/net/cpmac.c 2008-05-03 16:24:49.000000000 +0200
+@@ -1178,9 +1178,7 @@
+ 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))