From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Thu, 4 Apr 2013 15:27:52 +0000 Subject: [PATCH 11/11] RFC: ARM: get PCI device IRQs from device tree In-Reply-To: <1365087696-9548-12-git-send-email-linus.walleij@linaro.org> References: <1365087696-9548-1-git-send-email-linus.walleij@linaro.org> <1365087696-9548-11-git-send-email-linus.walleij@linaro.org> <1365087696-9548-12-git-send-email-linus.walleij@linaro.org> Message-ID: <201304041527.52400.arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 > --- > 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(). Arnd