[PATCH 11/11] RFC: ARM: get PCI device IRQs from device tree

Linus Walleij linus.walleij at linaro.org
Sun Apr 7 14:43:37 EDT 2013


On Thu, Apr 4, 2013 at 5:27 PM, Arnd Bergmann <arnd at arndb.de> wrote:
> On Thursday 04 April 2013, Linus Walleij wrote:
>> This adds the interrupt-map property to the PCIv3 DTS file
>> and makes the bridge obtain mappings from the device tree.
>>
>> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
>> ---
>> This currently bugs out - when trying to get the IRQs for
>> devices of_irq_map_pci() reads the IRQ pin from the PCI config
>> space successfully, then comes to trying to look up the parent
>> PCI device by checking pdev->bus->self, which is NULL, then
>> tries to treat it as a bridge doing pci_bus_to_OF_node(pdev->bus)
>> which also results in NULL and it bails out.
>>
>> No clue why this is so - some problem with the parent of this
>> bus not being a PCI device in itself? Help.
>
> All the PowerPC implementations I remember had the PCI bus
> as a device under the root node. It's very possible that it's
> just a bug in of_irq_map_pci().

Hm, quite hard to figure this one out.

Benjamin, any hints?

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list