summaryrefslogtreecommitdiffstats
path: root/target/linux/ixp4xx-2.6/patches/140-ixp4xx_net_driver_no_phy.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-06 16:27:37 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-06 16:27:37 +0000
commit17c7b6c3fdc48301e50d22cc6138ede16bd1be24 (patch)
treea5d41b991a151e72663527a96fbc6c494565d65c /target/linux/ixp4xx-2.6/patches/140-ixp4xx_net_driver_no_phy.patch
parent5389989abaa52926b22f9f030d1481df1e73d745 (diff)
strip the kernel version suffix from target directories, except for brcm-2.4 (the -2.4 will be included in the board name here). CONFIG_LINUX_<ver>_<board> becomes CONFIG_TARGET_<board>, same for profiles.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8653 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ixp4xx-2.6/patches/140-ixp4xx_net_driver_no_phy.patch')
-rw-r--r--target/linux/ixp4xx-2.6/patches/140-ixp4xx_net_driver_no_phy.patch73
1 files changed, 0 insertions, 73 deletions
diff --git a/target/linux/ixp4xx-2.6/patches/140-ixp4xx_net_driver_no_phy.patch b/target/linux/ixp4xx-2.6/patches/140-ixp4xx_net_driver_no_phy.patch
deleted file mode 100644
index 4bd6875e9..000000000
--- a/target/linux/ixp4xx-2.6/patches/140-ixp4xx_net_driver_no_phy.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-diff -Nur linux-2.6.19.2/drivers/net/ixp4xx/mac_driver.c linux-2.6.19.2-owrt/drivers/net/ixp4xx/mac_driver.c
---- linux-2.6.19.2/drivers/net/ixp4xx/mac_driver.c 2007-04-15 14:26:54.000000000 +0200
-+++ linux-2.6.19.2-owrt/drivers/net/ixp4xx/mac_driver.c 2007-04-15 14:33:44.000000000 +0200
-@@ -161,6 +161,16 @@
- {
- struct mac_info *mac = netdev_priv(dev);
-
-+ if ( mac->mii.phy_id < 0 ) {
-+ if ( init ) {
-+ netif_carrier_on(mac->mii.dev);
-+ mac->mii.full_duplex = 1;
-+ update_duplex_mode(dev);
-+ return 1;
-+ }
-+ return 0;
-+ }
-+
- if (mii_check_media(&mac->mii, netif_msg_link(mac), init)) {
- update_duplex_mode(dev);
- return 1;
-@@ -458,7 +468,12 @@
- return -EINVAL;
- if (!try_module_get(THIS_MODULE))
- return -ENODEV;
-- rc = generic_mii_ioctl(&mac->mii, if_mii(rq), cmd, &duplex_changed);
-+ if ( mac->mii.phy_id < 0 ) {
-+ duplex_changed = 0;
-+ rc = -EOPNOTSUPP;
-+ } else {
-+ rc = generic_mii_ioctl(&mac->mii, if_mii(rq), cmd, &duplex_changed);
-+ }
- module_put(THIS_MODULE);
- if (duplex_changed)
- update_duplex_mode(dev);
-@@ -488,6 +503,9 @@
- static int ixmac_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
- {
- struct mac_info *mac = netdev_priv(dev);
-+ if ( mac->mii.phy_id < 0 ) {
-+ return 0;
-+ }
- mii_ethtool_gset(&mac->mii, cmd);
- return 0;
- }
-@@ -496,6 +514,9 @@
- {
- struct mac_info *mac = netdev_priv(dev);
- int rc;
-+ if ( mac->mii.phy_id < 0 ) {
-+ return -EOPNOTSUPP;
-+ }
- rc = mii_ethtool_sset(&mac->mii, cmd);
- return rc;
- }
-@@ -503,12 +524,18 @@
- static int ixmac_nway_reset(struct net_device *dev)
- {
- struct mac_info *mac = netdev_priv(dev);
-+ if ( mac->mii.phy_id < 0 ) {
-+ return -EOPNOTSUPP;
-+ }
- return mii_nway_restart(&mac->mii);
- }
-
- static u32 ixmac_get_link(struct net_device *dev)
- {
- struct mac_info *mac = netdev_priv(dev);
-+ if ( mac->mii.phy_id < 0 ) {
-+ return 1;
-+ }
- return mii_link_ok(&mac->mii);
- }
-