linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/16] PCI: Re-factor 'pcibios_setup()'
@ 2012-06-26  3:30 Myron Stowe
  2012-06-26  3:30 ` [PATCH 01/16] PCI: Pull 'pcibios_setup' up into PCI's core Myron Stowe
                   ` (16 more replies)
  0 siblings, 17 replies; 28+ messages in thread
From: Myron Stowe @ 2012-06-26  3:30 UTC (permalink / raw)
  To: bhelgaas
  Cc: linux-pci, rth, ink, mattst88, linux, starvik, jesper.nilsson,
	tony.luck, fenghua.yu, monstr, ralf, yasutake.koichi, jejb,
	deller, benh, paulus, lethal, davem, cmetcalf, gxt, tglx, mingo,
	hpa, x86, chris, linux-kernel

Currently, all of the architectures implement their own 'pcibios_setup()'
routine.  Most of the implementations do nothing so this patch introduces
a generic (__weak) routine into PCI's core that can be used by all
architectures as a default.  If necessary, it can then be over-ridden by
architecture-specific code.

This series also cleans up 'pcibios_setup()' as necessary to consistently
use the "__init" section annotation.

Suggested by Bjorn Helgaas -
http://marc.info/?l=linux-kernel&m=134023745124680&w=2


It looks as if there is a bug in the CRIS architecture's version of
'pcibios_setup()'.  It implements pcibios_setup() such that pci_setup()
doesn't look for any generic options.  I included the fix for this in this
series.  If this ends up not being correct - i.e. PCI support for CRIS
should be dropped - then that specific patch (which I included last in the
series) can be dropped.

Note: I do not have a cross-compile environment so I have only tested x86.
---

Myron Stowe (16):
      cris/PCI: Factor 'pcibios_setup()' out of cris
      xtensa/PCI: Factor 'pcibios_setup()' out of xtensa
      x86/PCI: adjust section annotations for 'pcibios_setup()'
      unicore32/PCI: adjust section annotations for 'pcibios_setup()'
      tile/PCI: Factor 'pcibios_setup()' out of tile
      sparc/PCI: Factor 'pcibios_setup()' out of sparc
      sh/PCI: adjust section annotations for 'pcibios_setup()'
      sh/PCI: Factor 'pcibios_setup()' out of sh
      powerpc/PCI: Factor 'pcibios_setup()' out of powerpc
      parisc/PCI: Factor 'pcibios_setup()' out of parisc
      MIPS/PCI: adjust section annotations for 'pcibios_setup()'
      MIPS/PCI: Factor 'pcibios_setup()' out of MIPS/pmc-sierra
      microblaze/PCI: Factor 'pcibios_setup()' out of microblaze
      ia64/PCI: Factor 'pcibios_setup' out of ia64
      alpha/PCI: Factor 'pcibios_setup()' out of alpha
      PCI: Pull 'pcibios_setup' up into PCI's core


 arch/alpha/kernel/pci.c               |    6 ------
 arch/cris/arch-v32/drivers/pci/bios.c |    5 -----
 arch/ia64/pci/pci.c                   |    9 ---------
 arch/microblaze/pci/pci-common.c      |    5 -----
 arch/mips/pci/pci.c                   |    4 ++--
 arch/mips/pmc-sierra/yosemite/ht.c    |   11 -----------
 arch/mips/txx9/generic/pci.c          |    4 ++--
 arch/parisc/kernel/pci.c              |    5 -----
 arch/powerpc/kernel/pci-common.c      |    5 -----
 arch/sh/drivers/pci/fixups-sdk7786.c  |    4 ++--
 arch/sh/drivers/pci/pci.c             |    5 -----
 arch/sparc/kernel/leon_pci.c          |    8 --------
 arch/sparc/kernel/pci.c               |    5 -----
 arch/sparc/kernel/pcic.c              |    8 --------
 arch/tile/kernel/pci.c                |   10 ----------
 arch/unicore32/kernel/pci.c           |    2 +-
 arch/x86/pci/common.c                 |    2 +-
 arch/xtensa/kernel/pci.c              |    6 ------
 drivers/pci/pci.c                     |   12 ++++++++++++
 include/linux/pci.h                   |    1 +
 20 files changed, 21 insertions(+), 96 deletions(-)

-- 

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

end of thread, other threads:[~2012-07-05 21:33 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26  3:30 [PATCH 00/16] PCI: Re-factor 'pcibios_setup()' Myron Stowe
2012-06-26  3:30 ` [PATCH 01/16] PCI: Pull 'pcibios_setup' up into PCI's core Myron Stowe
2012-06-26  3:31 ` [PATCH 02/16] alpha/PCI: Factor 'pcibios_setup()' out of alpha Myron Stowe
2012-06-26 15:43   ` Richard Henderson
2012-06-26  3:31 ` [PATCH 03/16] ia64/PCI: Factor 'pcibios_setup' out of ia64 Myron Stowe
2012-06-26  3:31 ` [PATCH 04/16] microblaze/PCI: Factor 'pcibios_setup()' out of microblaze Myron Stowe
2012-06-26  5:47   ` Michal Simek
2012-06-26  3:31 ` [PATCH 05/16] MIPS/PCI: Factor 'pcibios_setup()' out of MIPS/pmc-sierra Myron Stowe
2012-06-26  3:31 ` [PATCH 06/16] MIPS/PCI: adjust section annotations for 'pcibios_setup()' Myron Stowe
2012-06-26  3:31 ` [PATCH 07/16] parisc/PCI: Factor 'pcibios_setup()' out of parisc Myron Stowe
2012-06-26  3:31 ` [PATCH 08/16] powerpc/PCI: Factor 'pcibios_setup()' out of powerpc Myron Stowe
2012-06-26  4:37   ` Benjamin Herrenschmidt
2012-06-26  3:31 ` [PATCH 09/16] sh/PCI: Factor 'pcibios_setup()' out of sh Myron Stowe
2012-06-26  4:57   ` Nobuhiro Iwamatsu
2012-06-26  5:51   ` Paul Mundt
2012-06-26  3:32 ` [PATCH 10/16] sh/PCI: adjust section annotations for 'pcibios_setup()' Myron Stowe
2012-06-26  3:32 ` [PATCH 11/16] sparc/PCI: Factor 'pcibios_setup()' out of sparc Myron Stowe
2012-06-26  3:36   ` David Miller
2012-06-26  3:32 ` [PATCH 12/16] tile/PCI: Factor 'pcibios_setup()' out of tile Myron Stowe
2012-06-26 13:18   ` Chris Metcalf
2012-06-28 17:30     ` Myron Stowe
2012-06-28 17:44       ` Chris Metcalf
2012-06-26  3:32 ` [PATCH 13/16] unicore32/PCI: adjust section annotations for 'pcibios_setup()' Myron Stowe
2012-06-26  7:01   ` guanxuetao
2012-06-26  3:32 ` [PATCH 14/16] x86/PCI: " Myron Stowe
2012-06-26  3:32 ` [PATCH 15/16] xtensa/PCI: Factor 'pcibios_setup()' out of xtensa Myron Stowe
2012-06-26  3:32 ` [PATCH 16/16] cris/PCI: Factor 'pcibios_setup()' out of cris Myron Stowe
2012-07-05 21:33 ` [PATCH 00/16] PCI: Re-factor 'pcibios_setup()' Bjorn Helgaas

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).