From: Greg KH <greg@kroah.com>
To: "Grover, Andrew" <andrew.grover@intel.com>
Cc: "Lee, Jung-Ik" <jung-ik.lee@intel.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: bare pci configuration access functions ?
Date: Thu, 31 Oct 2002 14:11:36 -0800 [thread overview]
Message-ID: <20021031221136.GC10689@kroah.com> (raw)
In-Reply-To: <EDC461A30AC4D511ADE10002A5072CAD04C7A493@orsmsx119.jf.intel.com>
On Thu, Oct 31, 2002 at 02:00:27PM -0800, Grover, Andrew wrote:
> > From: Greg KH [mailto:greg@kroah.com]
> > In 2.5 we now have a
> > pci_bus_read_*
> > and pci_bus_write_* functions, which the pci hotplug drivers use, as
> > they at least know the bus on which the devices they are
> > looking for are
> > on. I also had to convert over some ACPI code that was using the
> > pci_read_config functions to get everything to work properly, but I
> > don't seem to be able to find that code in the latest 2.5 tree, so I
> > guess you don't need to do that anymore?
>
> It's still there in drivers/acpi/osl.c. We use the pci_root_ops directly,
> instead of bus->ops (which is usually set to pci_root_ops anyways) but I
> just mention this as a sidenote.
Ah, thanks for pointing it out, I try to forget my forays into the ACPI
code :)
But even then, you are building up a few pci structures yourself to talk
to the pci device. In looking at the few places you call this function,
is there any reason that acpi_ex_pci_config_space_handler() can't just
call pci_bus_* itself, instead of having to go through
acpi_os_read_pci_configuration()? If so, the one other usage of the
acpi_os_read_pci_configuration() can cause that function to be
simplified a lot.
Anyway, this is a nice diversion from the real problem here, for 2.4,
should I just backport the pci_ops changes which will allow pci
hotplugging to work again on ia64, or do we want to do something else?
thanks,
greg k-h
next prev parent reply other threads:[~2002-10-31 22:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-31 22:00 Grover, Andrew
2002-10-31 22:11 ` Greg KH [this message]
2002-10-31 22:50 ` Scott Murray
2002-10-31 23:46 ` Greg KH
2002-11-01 0:23 ` Scott Murray
2002-10-31 23:37 ` KOCHI, Takayoshi
2002-10-31 23:54 ` Greg KH
2002-11-01 0:23 ` KOCHI, Takayoshi
2002-11-01 1:13 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2002-11-01 2:07 Grover, Andrew
2002-11-01 2:45 ` Greg KH
2002-10-31 21:07 Grover, Andrew
2002-10-31 21:23 ` Greg KH
2002-10-31 23:40 ` Kai Germaschewski
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=20021031221136.GC10689@kroah.com \
--to=greg@kroah.com \
--cc=andrew.grover@intel.com \
--cc=jung-ik.lee@intel.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
Powered by JetHome