diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-10-31 20:10:34 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-10-31 20:10:34 +0000 |
commit | 9be77f866930fc7e7e9858958c1174b832ce6bb9 (patch) | |
tree | 4a50b77b2b95970bcbac96e4c4c6ec94837c8527 /target/linux/ixp4xx/patches-2.6.31 | |
parent | 5f4c7746cd3420b6352c705fd116fff18effabf2 (diff) | |
download | mtk-20170518-9be77f866930fc7e7e9858958c1174b832ce6bb9.zip mtk-20170518-9be77f866930fc7e7e9858958c1174b832ce6bb9.tar.gz mtk-20170518-9be77f866930fc7e7e9858958c1174b832ce6bb9.tar.bz2 |
ixp4xx: the missing phy_disconnect call has been added in upstream, remove that patch
SVN-Revision: 18252
Diffstat (limited to 'target/linux/ixp4xx/patches-2.6.31')
-rw-r--r-- | target/linux/ixp4xx/patches-2.6.31/204-npe_driver_add_missing_phy_disconnect.patch | 10 | ||||
-rw-r--r-- | target/linux/ixp4xx/patches-2.6.31/205-npe_driver_separate_phy_functions.patch | 17 |
2 files changed, 13 insertions, 14 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.31/204-npe_driver_add_missing_phy_disconnect.patch b/target/linux/ixp4xx/patches-2.6.31/204-npe_driver_add_missing_phy_disconnect.patch deleted file mode 100644 index b77dc06..0000000 --- a/target/linux/ixp4xx/patches-2.6.31/204-npe_driver_add_missing_phy_disconnect.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/drivers/net/arm/ixp4xx_eth.c -+++ b/drivers/net/arm/ixp4xx_eth.c -@@ -1249,6 +1249,7 @@ static int __devexit eth_remove_one(stru - struct net_device *dev = platform_get_drvdata(pdev); - struct port *port = netdev_priv(dev); - -+ phy_disconnect(port->phydev); - unregister_netdev(dev); - phy_disconnect(port->phydev); - npe_port_tab[NPE_ID(port->id)] = NULL; diff --git a/target/linux/ixp4xx/patches-2.6.31/205-npe_driver_separate_phy_functions.patch b/target/linux/ixp4xx/patches-2.6.31/205-npe_driver_separate_phy_functions.patch index 857d959..b9835a0 100644 --- a/target/linux/ixp4xx/patches-2.6.31/205-npe_driver_separate_phy_functions.patch +++ b/target/linux/ixp4xx/patches-2.6.31/205-npe_driver_separate_phy_functions.patch @@ -99,12 +99,21 @@ if ((err = register_netdev(dev))) goto err_phy_dis; -@@ -1249,7 +1283,7 @@ static int __devexit eth_remove_one(stru - struct net_device *dev = platform_get_drvdata(pdev); +@@ -1232,7 +1266,7 @@ static int __devinit eth_init_one(struct + return 0; + + err_phy_dis: +- phy_disconnect(port->phydev); ++ ixp4xx_phy_disconnect(port->phydev); + err_free_mem: + npe_port_tab[NPE_ID(port->id)] = NULL; + platform_set_drvdata(pdev, NULL); +@@ -1250,7 +1284,7 @@ static int __devexit eth_remove_one(stru struct port *port = netdev_priv(dev); + unregister_netdev(dev); - phy_disconnect(port->phydev); + ixp4xx_phy_disconnect(dev); - unregister_netdev(dev); - phy_disconnect(port->phydev); npe_port_tab[NPE_ID(port->id)] = NULL; + platform_set_drvdata(pdev, NULL); + npe_release(port->npe); |