From: Greg KH <greg@kroah.com>
To: "KOCHI, Takayoshi" <t-kouchi@mvf.biglobe.ne.jp>
Cc: andrew.grover@intel.com, jung-ik.lee@intel.com,
linux-kernel@vger.kernel.org
Subject: Re: bare pci configuration access functions ?
Date: Thu, 31 Oct 2002 15:54:57 -0800 [thread overview]
Message-ID: <20021031235457.GF10689@kroah.com> (raw)
In-Reply-To: <20021101083717.IAAOC0A82650.6C9EC293@mvf.biglobe.ne.jp>
On Thu, Oct 31, 2002 at 03:37:16PM -0800, KOCHI, Takayoshi wrote:
>
> On Thu, 31 Oct 2002 14:11:36 -0800
> Greg KH <greg@kroah.com> wrote:
>
> > 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.
>
> That's because of Linux port of ACPI CA structure.
> ACPI CA divides the acpi driver into OS independent part and os dependent
> part. acpi_ex_pci_config_space_handler exists in OS-independent
> part and acpi_os_read_pci_configuration exists in OS-dependent
> part. The OS independent part is shared with other OSes, while
> OS dependent part (acpi_os_xxx functions) are Linux specific.
Ok, if you want to drag that baggage around for forever, fine. But
don't force me to change anything in the pci core to enable that baggage
to stay :)
> That's the way ACPI driver designers took and Linux can benefit
> from other OS's feedback in OS-independent part.
Can I ask if any of the development for other OSs has actually helped
Linux development? I'm just curious.
And isn't the ACPI core development basically finished, so that now we
can start to do these OS dependent optimizations to allow the ACPI code
base to start to shrink and move towards looking more like the rest of
the kernel code, instead of looking like "something that got run through
a Linux kernelizer style generator"?
> > 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?
>
> It would be great if we had the same 2.5 functions in 2.4.
It would be, but as I just said in a different response, it's a _big_
change. I can't just go breaking different arch's with impunity as I've
been doing in 2.5 :)
thanks,
greg k-h
next prev parent reply other threads:[~2002-10-31 23:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-31 22:00 bare pci configuration access functions ? Grover, Andrew
2002-10-31 22:11 ` Greg KH
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 [this message]
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=20021031235457.GF10689@kroah.com \
--to=greg@kroah.com \
--cc=andrew.grover@intel.com \
--cc=jung-ik.lee@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=t-kouchi@mvf.biglobe.ne.jp \
/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.