Patchwork [Bug,11754] tlan network driver does not work

login
register
mail settings
Submitter Manfred Scherer
Date Oct. 20, 2008, 1:43 p.m.
Message ID <200810201543.13677.manfred.scherer.mhm@t-online.de>
Download mbox | patch
Permalink /patch/5141/
State Rejected
Delegated to: Jeff Garzik
Headers show

Comments

Manfred Scherer - Oct. 20, 2008, 1:43 p.m.
Hi Robert

before I get DSL connection to the internet I used a analog modem (56kb) and the
eth1 (ThunderLAN) was not connected.
/var/log/messages was full with messages like this:

TLAN:  Giving autonegotiation more time.
TLAN:  Please check that your adapter has
TLAN:  been properly connected to a HUB or Switch.
TLAN:  Trying to establish link in the background...

To avoid this, i did a small patch to tlan.c since kernel 2.6.23:

pc1:/kernel/linux-2.6.27/drivers/net # diff -u tlan.c.ORIG tlan.c.20081013
pc1:/kernel/linux-2.6.27/drivers/net #

Patch

--- tlan.c.ORIG 2008-10-10 00:13:53.000000000 +0200
+++ tlan.c.20081013     2008-10-12 16:16:05.000000000 +0200
@@ -858,6 +858,8 @@ 

        priv = netdev_priv(dev);

+        priv->neg_be_verbose = 0;       /* 2007-01-23,2007-10-12 --ms, should start with 0 */
+
        if ( bbuf ) {
                dma_size = ( TLAN_NUM_RX_LISTS + TLAN_NUM_TX_LISTS )
                   * ( sizeof(TLanList) + TLAN_MAX_FRAME_SIZE );
@@ -2783,7 +2785,9 @@ 
                /* Wait for 8 sec to give the process
                 * more time.  Perhaps we should fail after a while.
                 */
-                if (!priv->neg_be_verbose++) {
+                /* if (!priv->neg_be_verbose++) 2007-01-23,2007-10-12 --ms */
+                if (!priv->neg_be_verbose) {
+                        priv->neg_be_verbose++;        /* 2007-01-23,2007-10-12 we'll see this messages one times --ms */
                         pr_info("TLAN:  Giving autonegotiation more time.\n");
                         pr_info("TLAN:  Please check that your adapter has\n");
                         pr_info("TLAN:  been properly connected to a HUB or Switch.\n");