1. 03 Jun, 2015 21 commits
  2. 02 Jun, 2015 18 commits
  3. 22 May, 2015 1 commit
    • Daniel Axtens's avatar
      powerpc/cell: Move MSI-related ops to pci_controller_ops · 7e3d6c5a
      Daniel Axtens authored
      Move the Cell platform to use the pci_controller_ops structure rather
      than ppc_md for MSI related PCI controller operations.
      
      We can be confident that the functions will be added to the platform's
      ops struct before any PCI controller's ops struct is populated
      because:
      
      1) These ops are added to the struct in a subsys initcall.
      
      We populate the ops in axon_msi_probe, which is the probe call for the
      axon-msi driver. However the driver is registered in axon_msi_init,
      which is a subsys initcall, so this will happen at the subsys level.
      
      2) The controller recieves the struct later, in a device initcall.
      
      Cell populates the controller in cell_setup_phb, which is hooked up to
      ppc_md.pci_setup_phb. ppc_md.pci_setup_phb is only ever called in
      of_platform.c, as part of the OpenFirmware PCI driver's probe
      routine. That driver is registered in a device initcall, so it will
      occur *after* the struct is properly populated.
      Signed-off-by: default avatarDaniel Axtens <dja@axtens.net>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      7e3d6c5a