summaryrefslogtreecommitdiffstats
path: root/target/linux/ixp4xx/patches-2.6.31/206-npe_driver_add_update_link_function.patch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-10-31 20:10:30 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-10-31 20:10:30 +0000
commit2d033cdc390e1458704378997edd1ba3d4b04d97 (patch)
treee0bf72cad334f10d6fffe48e9a4bf2c57913f7fb /target/linux/ixp4xx/patches-2.6.31/206-npe_driver_add_update_link_function.patch
parent56311db0caafbe6087b438cb06baf831bfb9cba4 (diff)
ixp4xx: remove bogus 'eth%d: MII PHY x on NPE-x' messages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18251 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ixp4xx/patches-2.6.31/206-npe_driver_add_update_link_function.patch')
-rw-r--r--target/linux/ixp4xx/patches-2.6.31/206-npe_driver_add_update_link_function.patch20
1 files changed, 10 insertions, 10 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.31/206-npe_driver_add_update_link_function.patch b/target/linux/ixp4xx/patches-2.6.31/206-npe_driver_add_update_link_function.patch
index 9529cce2c..419ec4cdb 100644
--- a/target/linux/ixp4xx/patches-2.6.31/206-npe_driver_add_update_link_function.patch
+++ b/target/linux/ixp4xx/patches-2.6.31/206-npe_driver_add_update_link_function.patch
@@ -77,9 +77,17 @@
static int ixp4xx_phy_connect(struct net_device *dev)
{
struct port *port = netdev_priv(dev);
-@@ -416,6 +431,10 @@ static int ixp4xx_phy_connect(struct net
+@@ -430,7 +445,6 @@ static void ixp4xx_phy_start(struct net_
+ {
+ struct port *port = netdev_priv(dev);
- port->phydev->irq = PHY_POLL;
+- port->speed = 0; /* force "link up" message */
+ phy_start(port->phydev);
+ }
+
+@@ -1260,6 +1274,10 @@ static int __devinit eth_init_one(struct
+ if ((err = register_netdev(dev)))
+ goto err_phy_dis;
+ port->link = 0;
+ port->speed = 0;
@@ -88,11 +96,3 @@
printk(KERN_INFO "%s: MII PHY %i on %s\n", dev->name, plat->phy,
npe_name(port->npe));
-@@ -433,7 +452,6 @@ static void ixp4xx_phy_start(struct net_
- {
- struct port *port = netdev_priv(dev);
-
-- port->speed = 0; /* force "link up" message */
- phy_start(port->phydev);
- }
-