From: Greg KH <greg@kroah.com>
To: Matthew Wilcox <willy@debian.org>
Cc: Linus Torvalds <torvalds@osdl.org>,
"David S. Miller" <davem@redhat.com>,
Jeff Garzik <jgarzik@pobox.com>,
linux-pci@atrey.karlin.mff.cuni.cz, netdev@oss.sgi.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pci_get_slot()
Date: Wed, 15 Oct 2003 12:34:55 -0700 [thread overview]
Message-ID: <20031015193455.GA23727@kroah.com> (raw)
In-Reply-To: <20031015185053.GH16535@parcelfarce.linux.theplanet.co.uk>
On Wed, Oct 15, 2003 at 07:50:53PM +0100, Matthew Wilcox wrote:
> On Wed, Oct 15, 2003 at 11:41:04AM -0700, Greg KH wrote:
> > The check of:
> > if (dev->bus->number == bus && dev->devfn == devfn)
> > in pci_find_slot() doesn't check for the domain?
>
> No, it would also need to check pci_domain_nr(dev->bus) .. and it doesn't
> have anything to check it against as that information isn't passed into
> the function.
Ah, missed that. I need to get myself a ppc64 box so I have to worry
about the pci domain stuff :)
> > Anyway, is there any other way you can fix this in the tg3 driver only
> > for right now? I agree adding the pci function is "cleaner", but a bit
> > late for right now.
>
> The only real way to do it is to inline pci_get_slot() into tg3. Since I
> also have a need for it in sym2, that doesn't seem like a sensible idea.
> It would also be racy since it wouldn't take the pci_bus_lock.
Ok, fair enough. I'll add it to my tree to be sent to Linus after 2.6.0
is out, if Jeff and David agree it's an ok tg3.c patch.
thanks,
greg k-h
next prev parent reply other threads:[~2003-10-15 19:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 18:32 [PATCH] pci_get_slot() Matthew Wilcox
2003-10-15 18:41 ` Greg KH
2003-10-15 18:50 ` Matthew Wilcox
2003-10-15 19:34 ` Greg KH [this message]
2003-10-15 19:55 ` Jeff Garzik
2003-10-15 19:13 ` Linus Torvalds
2003-12-18 0:24 ` Greg KH
2003-12-18 20:00 ` Matthew Wilcox
2004-01-29 22:46 ` Greg KH
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=20031015193455.GA23727@kroah.com \
--to=greg@kroah.com \
--cc=davem@redhat.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
--cc=netdev@oss.sgi.com \
--cc=torvalds@osdl.org \
--cc=willy@debian.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.