From: Matt Mackall <mpm@selenic.com>
To: Jeff Garzik <jgarzik@mandrakesoft.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] netif_carrier_* support for tlan
Date: Mon, 22 Sep 2003 13:52:25 -0500 [thread overview]
Message-ID: <20030922185225.GO2414@waste.org> (raw)
Add proper netif_carrier_* to tlan driver
l-mpm/drivers/net/tlan.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
diff -puN drivers/net/tlan.c~tlan-carrier drivers/net/tlan.c
--- l/drivers/net/tlan.c~tlan-carrier 2003-09-22 00:53:06.000000000 -0500
+++ l-mpm/drivers/net/tlan.c 2003-09-22 01:16:15.000000000 -0500
@@ -902,7 +902,9 @@ static int TLan_Init( struct net_device
err );
}
dev->addr_len = 6;
-
+
+ netif_carrier_off(dev);
+
/* Device methods */
dev->open = &TLan_Open;
dev->hard_start_xmit = &TLan_StartTx;
@@ -2227,6 +2229,8 @@ TLan_ResetAdapter( struct net_device *de
priv->tlanFullDuplex = FALSE;
priv->phyOnline=0;
+ netif_carrier_off(dev);
+
/* 1. Assert reset bit. */
data = inl(dev->base_addr + TLAN_HOST_CMD);
@@ -2390,6 +2394,7 @@ TLan_FinishReset( struct net_device *dev
}
outl( priv->rxListDMA, dev->base_addr + TLAN_CH_PARM );
outl( TLAN_HC_GO | TLAN_HC_RT, dev->base_addr + TLAN_HOST_CMD );
+ netif_carrier_on(dev);
} else {
printk( "TLAN: %s: Link inactive, will retry in 10 secs...\n", dev->name );
TLan_SetTimer( dev, (10*HZ), TLAN_TIMER_FINISH_RESET );
_
--
Matt Mackall : http://www.selenic.com : of or relating to the moon
next reply other threads:[~2003-09-22 18:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-22 18:52 Matt Mackall [this message]
2003-09-24 16:23 ` [PATCH] netif_carrier_* support for tlan Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030922185225.GO2414@waste.org \
--to=mpm@selenic.com \
--cc=jgarzik@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox