[PATCH V10] powerpc/fsl-pci: Unify pci/pcie initialization code

Kumar Gala galak at kernel.crashing.org
Thu Sep 13 06:20:16 EST 2012


On Aug 28, 2012, at 2:44 AM, Jia Hongtao wrote:

> We unified the Freescale pci/pcie initialization by changing the fsl_pci
> to a platform driver. In previous PCI code architecture the initialization
> routine is called at board_setup_arch stage. Now the initialization is done
> in probe function which is architectural better. Also It's convenient for
> adding PM support for PCI controller in later patch.
> 
> Now we registered pci controllers as platform devices. So we combine two
> initialization code as one platform driver.
> 
> Signed-off-by: Jia Hongtao <B38951 at freescale.com>
> Signed-off-by: Li Yang <leoli at freescale.com>
> Signed-off-by: Chunhe Lan <Chunhe.Lan at freescale.com>
> ---
> Changes for V10:
> * Just update comments for mpc85xx_cds_pci_assign_primary
> 
> arch/powerpc/platforms/85xx/common.c       |   10 +++
> arch/powerpc/platforms/85xx/corenet_ds.c   |   34 ++--------
> arch/powerpc/platforms/85xx/ge_imp3a.c     |   62 ++++++-----------
> arch/powerpc/platforms/85xx/mpc8536_ds.c   |   36 +---------
> arch/powerpc/platforms/85xx/mpc85xx_ads.c  |   11 +--
> arch/powerpc/platforms/85xx/mpc85xx_cds.c  |   44 +++++++++----
> arch/powerpc/platforms/85xx/mpc85xx_ds.c   |   14 ++--
> arch/powerpc/platforms/85xx/mpc85xx_mds.c  |   40 ++---------
> arch/powerpc/platforms/85xx/mpc85xx_rdb.c  |   30 +++-----
> arch/powerpc/platforms/85xx/p1010rdb.c     |   14 +---
> arch/powerpc/platforms/85xx/p1022_ds.c     |   36 +---------
> arch/powerpc/platforms/85xx/p1022_rdk.c    |   36 +---------
> arch/powerpc/platforms/85xx/p1023_rds.c    |    9 +--
> arch/powerpc/platforms/85xx/p2041_rdb.c    |    2 +-
> arch/powerpc/platforms/85xx/p3041_ds.c     |    2 +-
> arch/powerpc/platforms/85xx/p4080_ds.c     |    2 +-
> arch/powerpc/platforms/85xx/p5020_ds.c     |    2 +-
> arch/powerpc/platforms/85xx/p5040_ds.c     |    2 +-
> arch/powerpc/platforms/85xx/qemu_e500.c    |    4 +-
> arch/powerpc/platforms/85xx/sbc8548.c      |   21 +-----
> arch/powerpc/platforms/85xx/socrates.c     |   11 +---
> arch/powerpc/platforms/85xx/stx_gp3.c      |   13 +---
> arch/powerpc/platforms/85xx/tqm85xx.c      |   21 +-----
> arch/powerpc/platforms/85xx/xes_mpc85xx.c  |   56 ++-------------
> arch/powerpc/platforms/86xx/gef_ppc9a.c    |   12 +--
> arch/powerpc/platforms/86xx/gef_sbc310.c   |   13 +---
> arch/powerpc/platforms/86xx/gef_sbc610.c   |   12 +--
> arch/powerpc/platforms/86xx/mpc8610_hpcd.c |   21 ++----
> arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |   42 ++----------
> arch/powerpc/platforms/86xx/sbc8641d.c     |   14 +---
> arch/powerpc/sysdev/fsl_pci.c              |  102 +++++++++++++++++-----------
> arch/powerpc/sysdev/fsl_pci.h              |   15 +++-
> drivers/edac/mpc85xx_edac.c                |   43 +++---------
> 33 files changed, 249 insertions(+), 537 deletions(-)

applied to next

- k


More information about the Linuxppc-dev mailing list