public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] PCI: Use default pcibios_enable_device()
@ 2014-02-26 23:41 Bjorn Helgaas
  2014-02-26 23:41 ` [PATCH 1/7] PCI: Add "weak" generic pcibios_enable_device() implementation Bjorn Helgaas
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Bjorn Helgaas @ 2014-02-26 23:41 UTC (permalink / raw)
  To: linux-pci; +Cc: linux-kernel

Several architectures implement a simple pcibios_enable_device() that looks
like this:

  int pcibios_enable_device(struct pci_dev *dev, int mask)
  {
         return pci_enable_resources(dev, mask);
  }

This puts a weak version of that in the PCI core and removes the
corresponding implementations from the architectures.

s390 is slightly less trivial but the same general idea.

I'd like to do the same for all the other architectures, but some (arm,
cris, m68k, mips, unicore32, xtensa, and parts of sparc and tile) don't
seem to use pci_claim_resource(), so BAR resource r->parent pointers
probably aren't set, so I can't change them yet.

---

Bjorn Helgaas (7):
      PCI: Add "weak" generic pcibios_enable_device() implementation
      alpha/PCI: Use default pcibios_enable_device()
      microblaze/PCI: Use default pcibios_enable_device()
      sh/PCI: Use default pcibios_enable_device()
      sparc/PCI: Use default pcibios_enable_device() (Leon only)
      tile PCI RC: Use default pcibios_enable_device()
      s390/PCI: Use generic pci_enable_resources()


 arch/alpha/kernel/pci.c          |    6 ------
 arch/microblaze/pci/pci-common.c |    5 -----
 arch/s390/pci/pci.c              |   13 +------------
 arch/sh/drivers/pci/pci.c        |    5 -----
 arch/sparc/kernel/leon_pci.c     |    5 -----
 arch/tile/kernel/pci_gx.c        |   12 ------------
 drivers/pci/pci.c                |    5 +++++
 7 files changed, 6 insertions(+), 45 deletions(-)

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

end of thread, other threads:[~2014-03-04 20:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-26 23:41 [PATCH 0/7] PCI: Use default pcibios_enable_device() Bjorn Helgaas
2014-02-26 23:41 ` [PATCH 1/7] PCI: Add "weak" generic pcibios_enable_device() implementation Bjorn Helgaas
2014-02-26 23:41 ` [PATCH 2/7] alpha/PCI: Use default pcibios_enable_device() Bjorn Helgaas
2014-02-26 23:41 ` [PATCH 3/7] microblaze/PCI: " Bjorn Helgaas
2014-02-26 23:41 ` [PATCH 4/7] sh/PCI: " Bjorn Helgaas
2014-02-26 23:42 ` [PATCH 5/7] sparc/PCI: Use default pcibios_enable_device() (Leon only) Bjorn Helgaas
2014-02-26 23:42 ` [PATCH 6/7] tile PCI RC: Use default pcibios_enable_device() Bjorn Helgaas
2014-03-04 17:20   ` Chris Metcalf
2014-02-26 23:42 ` [PATCH 7/7] s390/PCI: Use generic pci_enable_resources() Bjorn Helgaas
2014-03-03 13:35   ` Sebastian Ott
2014-03-03 16:13     ` Bjorn Helgaas
2014-03-04 20:53 ` [PATCH 0/7] PCI: Use default pcibios_enable_device() Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox