diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2006-01-10 01:06:43 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-01-10 01:06:43 +0000 |
commit | 2f0e3d2a376647127e9d569aa9d2ab0ae2211843 (patch) | |
tree | b81909ac6d20e1eac9ede7cd68b04a32597bf213 /packages/ixp425-eth/ixp400-eth-1.5/debug.patch | |
parent | a8ba51336caf9272a41e3cd68531920333d19e75 (diff) |
ixp400-eth: incorporate new patches from nslu2 CVS into 1.5
- three new patches from dwery:
continue-if-qmgr-init-fails, int-random, stop-on-rmmod
change to device name (eth vs ixp) handling from rwhitby so that is
works on non-OE builds (plus debug code added to debug.patch)
sanitise patches to make them easier to compare
Diffstat (limited to 'packages/ixp425-eth/ixp400-eth-1.5/debug.patch')
-rw-r--r-- | packages/ixp425-eth/ixp400-eth-1.5/debug.patch | 96 |
1 files changed, 88 insertions, 8 deletions
diff --git a/packages/ixp425-eth/ixp400-eth-1.5/debug.patch b/packages/ixp425-eth/ixp400-eth-1.5/debug.patch index f88457c060..c684c078d2 100644 --- a/packages/ixp425-eth/ixp400-eth-1.5/debug.patch +++ b/packages/ixp425-eth/ixp400-eth-1.5/debug.patch @@ -1,7 +1,62 @@ -# This patch is not necessary but helps when debugging the build ---- ./ixp400_eth.c 2005-11-20 13:26:14.890767165 -0800 -+++ ./ixp400_eth.c 2005-11-20 13:45:32.163589752 -0800 -@@ -3249,6 +3249,8 @@ static int __devinit dev_eth_probe(struc +This patch is not necessary but helps when debugging the build + +--- ixp400-eth/ixp400_eth.c 1970-01-01 00:00:00.000000000 +0000 ++++ ixp400-eth/ixp400_eth.c 1970-01-01 00:00:00.000000000 +0000 +@@ -1350,9 +1350,10 @@ static int dev_media_check_thread (void* + + if (res != IX_ETH_ACC_SUCCESS) + { +- P_WARN("ixEthMiiLinkStatus failed on PHY%d.\n" ++ P_WARN("%s: ixEthMiiLinkStatus failed on PHY%d.\n" + "\tCan't determine\nthe auto negotiated parameters. " + "Using default values.\n", ++ dev->name, + phyNum); + /* something is bad, gracefully stops the loop */ + priv->maintenanceCheckStopped = TRUE; +@@ -2213,7 +2214,8 @@ static int port_enable(struct net_device + IX_IEEE803_MAC_ADDRESS_SIZE); + if ((res = ixEthAccPortUnicastMacAddressSet(priv->port_id, &npeMacAddr))) + { +- P_VERBOSE("Failed to set MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x for port %d\n", ++ P_VERBOSE("%s: Failed to set MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x for port %d\n", ++ dev->name, + (unsigned)npeMacAddr.macAddress[0], + (unsigned)npeMacAddr.macAddress[1], + (unsigned)npeMacAddr.macAddress[2], +@@ -2707,8 +2709,8 @@ static int do_dev_ioctl(struct net_devic + down (miiAccessMutex); /* lock the MII register access mutex */ + if ((res = ixEthAccMiiReadRtn (data->phy_id, data->reg_num, &data->val_out))) + { +- P_ERROR("Error reading MII reg %d on phy %d\n", +- data->reg_num, data->phy_id); ++ P_ERROR("%s: Error reading MII reg %d on phy %d\n", ++ dev->name, data->reg_num, data->phy_id); + res = -1; + } + up (miiAccessMutex); /* release the MII register access mutex */ +@@ -2720,8 +2722,8 @@ static int do_dev_ioctl(struct net_devic + down (miiAccessMutex); /* lock the MII register access mutex */ + if ((res = ixEthAccMiiWriteRtn (data->phy_id, data->reg_num, data->val_in))) + { +- P_ERROR("Error writing MII reg %d on phy %d\n", +- data->reg_num, data->phy_id); ++ P_ERROR("%s: Error writing MII reg %d on phy %d\n", ++ dev->name, data->reg_num, data->phy_id); + res = -1; + } + up (miiAccessMutex); /* release the MII register access mutex */ +@@ -3049,7 +3051,8 @@ static int set_mac_address(struct net_de + /* Set MAC addr in h/w (ethAcc checks for MAC address to be valid) */ + if ((res = ixEthAccPortUnicastMacAddressSet(priv->port_id, &npeMacAddr))) + { +- P_VERBOSE("Failed to set MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x for port %d\n", ++ P_VERBOSE("%s: Failed to set MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x for port %d\n", ++ dev->name, + (unsigned)npeMacAddr.macAddress[0], + (unsigned)npeMacAddr.macAddress[1], + (unsigned)npeMacAddr.macAddress[2], +@@ -3267,6 +3270,8 @@ static int __devinit dev_eth_probe(struc kmalloc(sizeof(struct semaphore), GFP_KERNEL); if (!priv->maintenanceCheckThreadComplete) { @@ -10,7 +65,7 @@ goto error; } priv->lock = SPIN_LOCK_UNLOCKED; -@@ -3355,7 +3361,11 @@ static int __devinit dev_eth_probe(struc +@@ -3360,7 +3365,11 @@ static int __devinit dev_eth_probe(struc #if IS_KERNEL26 if (register_netdev(ndev)) @@ -22,7 +77,7 @@ #else found_devices++; #endif /* IS_KERNEL26 */ -@@ -3365,6 +3375,8 @@ static int __devinit dev_eth_probe(struc +@@ -3370,6 +3379,8 @@ static int __devinit dev_eth_probe(struc /* register EthAcc callbacks for this port */ if (dev_rxtxcallback_register(portId, (UINT32)ndev)) { @@ -31,7 +86,7 @@ goto error; } -@@ -3388,6 +3400,7 @@ static int __devinit dev_eth_probe(struc +@@ -3393,6 +3404,7 @@ static int __devinit dev_eth_probe(struc /* Error handling: enter here whenever error detected */ error: @@ -39,7 +94,32 @@ TRACE; #ifdef CONFIG_IXP400_ETH_QDISC_ENABLED -@@ -3523,6 +3536,9 @@ static int __init ixp400_eth_init(void) +@@ -3465,21 +3477,21 @@ static int __devexit dev_eth_remove(int + { + if (IX_SUCCESS != ixNpeDlNpeStopAndReset(IX_NPEDL_NPEID_NPEA)) + { +- P_NOTICE("Error Halting NPE for Ethernet port %d!\n", portId); ++ P_NOTICE("%s: Error Halting NPE for Ethernet port %d!\n", ndev->name, portId); + } + } + if (default_npeImageId[portId] == IX_ETH_NPE_B_IMAGE_ID) + { + if (IX_SUCCESS != ixNpeDlNpeStopAndReset(IX_NPEDL_NPEID_NPEB)) + { +- P_NOTICE("Error Halting NPE for Ethernet port %d!\n", portId); ++ P_NOTICE("%s: Error Halting NPE for Ethernet port %d!\n", ndev->name, portId); + } + } + if (default_npeImageId[portId] == IX_ETH_NPE_C_IMAGE_ID) + { + if (IX_SUCCESS != ixNpeDlNpeStopAndReset(IX_NPEDL_NPEID_NPEC)) + { +- P_NOTICE("Error Halting NPE for Ethernet port %d!\n", portId); ++ P_NOTICE("%s: Error Halting NPE for Ethernet port %d!\n", ndev->name, portId); + } + } + +@@ -3528,6 +3540,9 @@ static int __init ixp400_eth_init(void) TRACE; P_INFO("Initializing IXP400 NPE Ethernet driver software v. " MOD_VERSION " \n"); |