]> git.baikalelectronics.ru Git - kernel.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)
commit0621ab995e13f34f7a3db0d4863ef701a9c33fd2
treee5db4bf85123ef21c56cc0adc44ba7c3617c7971
parentcfdf5cc83a85b036952452a725d31d523a1b9597
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