linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Unify definations of struct pci_controller
@ 2013-04-25  9:49 Andrew Murray
  2013-04-25  9:49 ` [RFC PATCH 1/3] powerpc: Move struct pci_controller to asm-generic Andrew Murray
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrew Murray @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-pci, linuxppc-dev, microblaze-uclinux
  Cc: monstr, arnd, linux-kernel, bhelgaas, Andrew Murray

PowerPC and Microblaze have nearly identical definations of struct
pci_controller - this patch unifies them in asm-generic to reduce
code duplication and to allow new architectures to reuse.

This patchset follows and depends on "of/pci: Provide common
support for PCI DT parsing" which provided common 'ranges' parsing
code which uses an architecture defined struct pci_controller. This
patch is currently in Jason Coopers mvebu-next/pcie branch.

It is hoped this will pave the way for providing common
implementations of commonly duplicated functions found across the
architectures such as pcibios_alloc|free_controller and
pcibios_setup_phb_resources type functions.

Andrew Murray (3):
  powerpc: Move struct pci_controller to asm-generic
  microblaze: Use asm-generic version of pci_controller
  pci: Use common definations of INDIRECT_TYPE_*

 arch/microblaze/include/asm/pci-bridge.h |   70 +-----------------------
 arch/powerpc/include/asm/pci-bridge.h    |   82 ---------------------------
 arch/powerpc/sysdev/fsl_pci.c            |   16 +++---
 arch/powerpc/sysdev/indirect_pci.c       |   20 +++---
 arch/powerpc/sysdev/ppc4xx_pci.c         |    4 +-
 arch/powerpc/sysdev/xilinx_pci.c         |    2 +-
 include/asm-generic/pci-bridge.h         |   90 ++++++++++++++++++++++++++++++
 7 files changed, 112 insertions(+), 172 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-25 19:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25  9:49 [RFC PATCH 0/3] Unify definations of struct pci_controller Andrew Murray
2013-04-25  9:49 ` [RFC PATCH 1/3] powerpc: Move struct pci_controller to asm-generic Andrew Murray
2013-04-25 19:08   ` Bjorn Helgaas
2013-04-25  9:49 ` [RFC PATCH 2/3] microblaze: Use asm-generic version of pci_controller Andrew Murray
2013-04-25  9:49 ` [RFC PATCH 3/3] pci: Use common definations of INDIRECT_TYPE_* Andrew Murray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).