Thread (3 messages) 3 messages, 2 authors, 2012-12-12

Re: pci and pcie device-tree binding - range No cells

From: Andrew Murray <hidden>
Date: 2012-12-12 16:44:58
Also in: linux-pci, linuxppc-dev

Possibly related (same subject, not in this thread)

On Wed, Dec 12, 2012 at 01:34:24PM +0000, Thierry Reding wrote:
On Wed, Dec 12, 2012 at 12:19:12PM +0000, Andrew Murray wrote:
quoted
I've been working on a relatively architecture agnostic PCI host bridge driver
and also wanted to avoid duplicating more generic DT parsing code for PCI
bindings.

I've ended up with a patch which provides an iterator for returning resources
based on the the typical 'ranges' binding. This has ended up living in
drivers/of/address.c. I originally started out in drivers/of/pci.c and
drivers/pci/pci-of.c but found there were good (and static) implementations in
drivers/of/address.c which can be reused (e.g. of_bus_pci_get_flags,
bus->count_cells).

I'm not just ready to post it - but can do before early next week if you can
wait.
I already posted a similar patch[0] as part of a larger series to bring
DT support to Tegra PCIe back in July. I suppose what you have must be
something pretty close to that. Most of the stuff that had me occupied
since then should be done soon and I was planning on resurrecting the
series one of these days.
Thanks for the reference. I've submitted my patch, it's along the lines of your
existing patch.

I'm happy to take the best bits from both, drop mine, etc.

Andrew Murray
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help