diff options
author | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-12 02:02:58 +0000 |
---|---|---|
committer | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-12 02:02:58 +0000 |
commit | 451089be3aca7436f86ada90a39e450dc4ad7874 (patch) | |
tree | 6870fa2b5548592459151c5a5d25ceef5e45892d /target/linux/ixp4xx/patches-2.6.23/202-npe_driver_no_phy.patch | |
parent | 08c3d434a7d03a4e3ae146be2c27a3b49699fd3d (diff) |
nuke most of the old ixp4xx patchsets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11778 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ixp4xx/patches-2.6.23/202-npe_driver_no_phy.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-2.6.23/202-npe_driver_no_phy.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.23/202-npe_driver_no_phy.patch b/target/linux/ixp4xx/patches-2.6.23/202-npe_driver_no_phy.patch deleted file mode 100644 index b3c9ca024..000000000 --- a/target/linux/ixp4xx/patches-2.6.23/202-npe_driver_no_phy.patch +++ /dev/null @@ -1,42 +0,0 @@ -Index: linux-2.6.23.17/drivers/net/arm/ixp4xx_eth.c -=================================================================== ---- linux-2.6.23.17.orig/drivers/net/arm/ixp4xx_eth.c -+++ linux-2.6.23.17/drivers/net/arm/ixp4xx_eth.c -@@ -297,6 +297,27 @@ static int mdio_read(struct net_device * - unsigned long flags; - u16 val; - -+ /* For boards that use a switch chip (eg. Marvell 88E6060) */ -+ if ( phy_id < 0 || phy_id > 31 ) { -+ switch (location) { -+ case MII_BMCR: -+ val = 0x3100; -+ break; -+ case MII_BMSR: -+ val = 0x406d; -+ break; -+ case MII_ADVERTISE: -+ val = 0x0101; -+ break; -+ case MII_LPA: -+ val = 0x4101; -+ break; -+ default: -+ val = 0; -+ break; -+ } -+ return val; -+ } - spin_lock_irqsave(&mdio_lock, flags); - val = mdio_cmd(dev, phy_id, location, 0, 0); - spin_unlock_irqrestore(&mdio_lock, flags); -@@ -308,6 +329,9 @@ static void mdio_write(struct net_device - { - unsigned long flags; - -+ if ( phy_id < 0 || phy_id > 31 ) { -+ return; -+ } - spin_lock_irqsave(&mdio_lock, flags); - mdio_cmd(dev, phy_id, location, 1, val); - spin_unlock_irqrestore(&mdio_lock, flags); |