X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/41167c6d5468e9500de6a9bc16ce7dbde7bcb628..8307a885978c1ac066e37d469abaedfd1c85bec8:/target/linux/ixp4xx/patches-2.6.30/206-npe_driver_add_update_link_function.patch diff --git a/target/linux/ixp4xx/patches-2.6.30/206-npe_driver_add_update_link_function.patch b/target/linux/ixp4xx/patches-2.6.30/206-npe_driver_add_update_link_function.patch index 9529cce2c..f12c671a3 100644 --- a/target/linux/ixp4xx/patches-2.6.30/206-npe_driver_add_update_link_function.patch +++ b/target/linux/ixp4xx/patches-2.6.30/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); + } + +@@ -1258,6 +1272,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); - } -