• Daniel Axtens's avatar
    powerpc/fsl_msi: Move MSI-related ops to pci_controller_ops · 00e25397
    Daniel Axtens authored
    Move the fsl_msi subsystem to use the pci_controller_ops structure
    rather than ppc_md for MSI related PCI controller operations.
    
    Previously, MSI ops were added to ppc_md at the subsys level. However,
    in fsl_pci.c, PCI controllers are created at the at arch level. So,
    unlike in e.g. PowerNV/pSeries/Cell, we can't simply populate a
    platform-level controller ops structure and have it copied into the
    controllers when they are created.
    
    Instead, walk every phb, and attempt to populate it with the MSI ops.
    Signed-off-by: default avatarDaniel Axtens <dja@axtens.net>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    00e25397
fsl_msi.c 15.6 KB