From: Jim Keniston <jkenisto@us.ibm.com>
To: David Dillow <dave@thedillows.org>
Cc: Jeff Garzik <jgarzik@pobox.com>,
Anton Blanchard <anton@samba.org>, Netdev <netdev@oss.sgi.com>,
cramerj@intel.com, john.ronciak@intel.com,
ganesh.venkatesan@intel.com, jonmason@us.ibm.com,
Jim Keniston <jkenisto@us.ibm.com>
Subject: Re: Network device driver probe issues
Date: 16 Jul 2004 11:26:30 -0700 [thread overview]
Message-ID: <1090002390.1690.113.camel@localhost.localdomain> (raw)
In-Reply-To: <1089953344.23577.15.camel@ori.thedillows.org>
On Thu, 2004-07-15 at 21:49, David Dillow wrote:
> On Thu, 2004-07-15 at 21:04, Jim Keniston wrote:
> > On Thu, 2004-07-15 at 16:34, Jeff Garzik wrote:
> [snip]
> > > > We should instead use something stable to attach to printks during
> > > > probe. pci_name() is the obvious choice, perhaps using dev_printk().
> > > > The failure then becomes:
> > > >
> > > > 0000:01:01.0 Intel(R) PRO/1000 Network Connection
> > > > 0000:01:01.0 The EEPROM Checksum Is Not Valid
> > > > 0000:02:01.0 Intel(R) PRO/1000 Network Connection
> > >
> > > pci_name() or a simple counter of devices found. I prefer pci_name()
> > >
> > > Jeff
> >
> > Delay registration until the end of the probe, and make DPRINTK smarter.
> > DPRINTK should check
> > adapter->netdev->reg_state == NETREG_REGISTERED
> > and use the interface name (eth0) if the device is registered, or
> > pci_name() if it's not.
> >
> > Jim
>
> In the typhoon driver, I have tp->name, and most everything that prints
> info/errors about the card use it. During probing, it is initially set
> to point to pci_name(), and once registered, it gets pointed to
> netdev->name.
>
> This seems fairly clean, though maybe a bit redundant.
>
> Dave
>
Works for me. While we're talking about DPRINTK, e100.c could use a
similar adjustment. e100_probe() correctly defers registration until
the probe has succeeded, but as a result, probe-time failure messages
refer to "eth%d", right?
Jim
next prev parent reply other threads:[~2004-07-16 18:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-15 13:52 Network device driver probe issues Anton Blanchard
2004-07-15 23:34 ` Jeff Garzik
2004-07-16 1:04 ` Jim Keniston
2004-07-16 4:49 ` David Dillow
2004-07-16 18:26 ` Jim Keniston [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-07-16 19:15 Venkatesan, Ganesh
2004-07-16 19:52 ` 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=1090002390.1690.113.camel@localhost.localdomain \
--to=jkenisto@us.ibm.com \
--cc=anton@samba.org \
--cc=cramerj@intel.com \
--cc=dave@thedillows.org \
--cc=ganesh.venkatesan@intel.com \
--cc=jgarzik@pobox.com \
--cc=john.ronciak@intel.com \
--cc=jonmason@us.ibm.com \
--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).