From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: ARM PCI controller registration and representation using device tree?
Date: Sat, 2 Jun 2012 15:34:48 +0100 [thread overview]
Message-ID: <20120602143448.GA1624@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <4113992.BTnO0ZYQON@bender>
On Sat, Jun 02, 2012 at 04:18:11PM +0200, Florian Fainelli wrote:
> I was wondering if anyone had started working on representing the various PCI
> controllers found on SoCs to a device tree representation?
>
> It seems like quite some generic code could be borrowed from PowerPC,
> especially the parsing of the PCI ranges, though I don't see ARM directly
> exposing a struct pci_controller to easily allow that.
>
> Any thoughts about this?
I think we have to keep the existing strategy of having struct hw_pci and
its pci_sys_data, registering each bus separately with its own individual
swizzle and map_irq functions depending on how the bus hardware is setup.
Also rememer that the PCI configuration space accessor functions are highly
PCI host bridge specific.
I don't think we can (or should) rely upon platforms having code in their
boot loader to probe the PCI bus, and provide the kernel with the PCI bus
structure.
I don't see this as a problem for DT - we just need a way to represent
each PCI bus as some kind of device. I'm thinking whether we could get
away with converting the existing model to use platform devices, and
then we can use the existing DT platform device code to create the
relevant platform device.
Irrespective of whether your PCI host bridge appears as PCI device 0:0.0
or not, that's probably the right idea anyway.
next prev parent reply other threads:[~2012-06-02 14:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 14:18 ARM PCI controller registration and representation using device tree? Florian Fainelli
2012-06-02 14:34 ` Russell King - ARM Linux [this message]
2012-06-03 2:41 ` Arnd Bergmann
2012-06-03 7:55 ` Russell King - ARM Linux
2012-06-03 11:54 ` Arnd Bergmann
2012-06-02 20:48 ` Rob Herring
2012-06-03 5:56 ` Arnd Bergmann
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=20120602143448.GA1624@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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