netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Donald Becker <becker@scyld.com>
Cc: jamal <hadi@cyberus.ca>, netdev@oss.sgi.com
Subject: Re: [ANNOUNCE] NAPI patches for 2.4.19-rc1
Date: Thu, 11 Jul 2002 10:57:12 -0400	[thread overview]
Message-ID: <3D2D9CC8.5050200@mandrakesoft.com> (raw)
In-Reply-To: Pine.LNX.4.44.0207102019160.2498-100000@beohost.scyld.com

Donald Becker wrote:
> The mdelay(300) is completely bogus.  While that is a typical period for
> autonegotiation to complete on a short link, the spec says that it can
> take up to 3 seconds, 10X longer, to complete autonegotiation.  Given
> that the driver must be able to handle a longer autonegotiation period
> and no link beat, why call mdelay() at all?

Ouch.  You are absolutely right, and I take the blame for not reviewing 
more closely.  That's what I get for trusting vendors too much ;-) 
[D-Link has been the one patching sundance and dl2k for a while now]

I've been meaning to go through several drivers and fix up the stupid 
assumptions they make about autonegotiation completion time.  There are 
a couple other drivers that do somewhat the same thing, though with a 
different [if equally silly] implementation.

And finally, most drivers need to be updated to follow the logic:  call 
netif_carrier_off().  Wait for autoneg complete and link OK, before 
calling netif_carrier_on().


> The driver also changes the transceiver settings to non-standard
> values.  Yes, the change might seem more descriptive, but the modified
> driver doesn't match the documentation or accept the options that other
> drivers do.  There is a value to consistency: "/bin/list" is more
> descriptive than  "/bin/ls", but you don't see any distribution trying
> to rename 'ls'... 

Which lines of code are you referring to?

This _might_ be a case where the docs are inaccurate, since the patch 
was done by D-Link with access to the chip designers.

	Jeff

  reply	other threads:[~2002-07-11 14:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-10 22:32 [ANNOUNCE] NAPI patches for 2.4.19-rc1 Jason Lunz
2002-07-10 22:56 ` Ben Greear
2002-07-11 13:20   ` Jason Lunz
2002-07-10 23:34 ` jamal
2002-07-11  0:41   ` Donald Becker
2002-07-11 14:57     ` Jeff Garzik [this message]
2002-07-11 16:50       ` Donald Becker
2002-07-11 17:17         ` Ben Greear
2002-07-11 18:31           ` Jeff Garzik
2002-07-11 22:31             ` Ben Greear
2002-07-12 15:11               ` Jason Lunz
2002-07-11 18:53           ` Donald Becker
2002-07-11 19:34         ` Jeff Garzik
2002-07-11 13:26   ` Jason Lunz
2002-07-11 13:39     ` Jeff Garzik
2002-07-11 13:44       ` Jason Lunz
2002-07-11 14:33         ` Donald Becker
2002-07-11 14:37         ` Jeff Garzik
2002-07-11 16:00 ` Robert Olsson

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=3D2D9CC8.5050200@mandrakesoft.com \
    --to=jgarzik@mandrakesoft.com \
    --cc=becker@scyld.com \
    --cc=hadi@cyberus.ca \
    --cc=netdev@oss.sgi.com \
    /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;
as well as URLs for NNTP newsgroup(s).