From c6a486db250288617f002aed6dfb31a6554fad38 Mon Sep 17 00:00:00 2001 From: matteo Date: Sat, 3 May 2008 15:33:38 +0000 Subject: ar7: 2.6.25.1 support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11023 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch (limited to 'target/linux/ar7/patches-2.6.25/170-cpmac_eth_fix.patch') 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 000000000..c720794d3 --- /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)) -- cgit v1.2.3