On Thu, Jun 06, 2013 at 06:41:22PM +0200, Thomas Petazzoni wrote: [...] > diff --git a/include/linux/msi.h b/include/linux/msi.h > index 4633529..a1a6084 100644 > --- a/include/linux/msi.h > +++ b/include/linux/msi.h > @@ -61,6 +61,8 @@ int arch_msi_check_device(struct pci_dev* dev, int nvec, int type); > struct msi_chip { > struct module *owner; > struct device *dev; > + struct device_node *of_node; Shouldn't we be reusing the dev.of_node field to look this information up? On Tegra we do register the MSI chip and set the dev member to the PCIe host bridge device. Can't the same thing be done for the Armada? I assume that the MSI controller provider will be instantiated from the device tree and hence there will already be a struct platform_device and therefore also a struct device associated with it which should have the of_node field set to the correct value automatically. Thierry
Attachment:
pgpgheWYE7mEF.pgp
Description: PGP signature