[PATCH v2 0/5] Marvell EBU PCIe driver

Sebastian Hesselbarth sebastian.hesselbarth at gmail.com
Mon Jul 28 06:26:05 PDT 2014


Second round of the Marvell EBU PCIe driver patch set. Compared
to v1, I reworked pci_scan_bus to properly set IORESOURCE flags
for all resources, and added auto-incrementing pci bus numbering.

Patch 1 is unchanged and still fixes resource computation of mbus
driver. Patch 2 now properly sets IORESOURCE flags for I/O, 32b
MEM, and 64b MEM resources.

Patch 3 is a squashed and reworked patch dealing with pci host
controller registration: bus number is now assigned from an auto-
incremented bus_index and already provided pci_controller's
set_busno is called right before pci_scan_bus to allow the
controller to update internal registers related with bus number.
This patch also sets a back-reference to the pci_controller of
a pci_bus and cleans up some unused left-overs from Linux import.

Patch 4 is unchanged import of of_pci_get_devfn() and Patch 5
finally adds the PCIe controller driver for Marvell MVEBU SoCs.
Individual changelogs are also at the corresponding patch mails.

Again, this has been tested on Armada 370 Mirabox.

I added Lucas's Acked-by to all individual patches except new
Patch 3, although I did not respect his request for
'#if defined(FOO)' removal in MVEBU PCIe driver.

Sebastian

Sebastian Hesselbarth (5):
  bus: mvebu: fix resource size handling
  pci: pci_scan_bus: respect 64b BARs
  pci: set auto-incremented bus number
  of: pci: import of_pci_get_devfn()
  pci: mvebu: Add PCIe driver

 arch/arm/Kconfig            |   1 +
 drivers/bus/mvebu-mbus.c    |   8 +-
 drivers/of/Kconfig          |   6 +
 drivers/of/Makefile         |   1 +
 drivers/of/of_pci.c         |  27 +++
 drivers/pci/Kconfig         |   6 +
 drivers/pci/Makefile        |   2 +
 drivers/pci/pci-mvebu-phy.c | 102 +++++++++++
 drivers/pci/pci-mvebu.c     | 434 ++++++++++++++++++++++++++++++++++++++++++++
 drivers/pci/pci-mvebu.h     |  35 ++++
 drivers/pci/pci.c           |  14 +-
 include/linux/pci.h         |  12 +-
 include/of_pci.h            |  17 ++
 13 files changed, 651 insertions(+), 14 deletions(-)
 create mode 100644 drivers/of/of_pci.c
 create mode 100644 drivers/pci/pci-mvebu-phy.c
 create mode 100644 drivers/pci/pci-mvebu.c
 create mode 100644 drivers/pci/pci-mvebu.h
 create mode 100644 include/of_pci.h

---
Cc: barebox at lists.infradead.org
Cc: Antony Pavlov <antonynpavlov at gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
Cc: Lucas Stach <l.stach at pengutronix.de>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
-- 
2.0.0




More information about the barebox mailing list