]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM/PCI: Save MSI controller in pci_sys_data
authorYijing Wang <wangyijing@huawei.com>
Mon, 27 Oct 2014 07:48:40 +0000 (15:48 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Nov 2014 16:32:29 +0000 (09:32 -0700)
commit49dcc01a9ff2df5fafe50777bec0591c0a588d27
treee5db4bf85123ef21c56cc0adc44ba7c3617c7971
parent262a2baf9e4a2fcedb6645ca98d77a1c12303a1d
ARM/PCI: Save MSI controller in pci_sys_data

Currently ARM associates an MSI controller with a PCI bus by defining
pcibios_add_bus() and using it to call a struct hw_pci.add_bus() method.
That method sets the struct pci_bus "msi" member.  That's unwieldy and
unnecessarily couples MSI with the PCI enumeration code.

On ARM, all devices under the same PCI host bridge share an MSI controller,
so add an msi_controller pointer to the struct pci_sys_data and implement
pcibios_msi_controller() to retrieve it.

This is a step toward moving the msi_controller pointer into the generic
struct pci_host_bridge.

[bhelgaas: changelog, take pci_dev instead of pci_bus]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/arm/include/asm/mach/pci.h
arch/arm/kernel/bios32.c