mbox series

[U-Boot,0/3] Introduce APIs for multi PCIe host controller platforms

Message ID 20191122222323.28898-1-vladimir.olovyannikov@broadcom.com
Headers show
Series Introduce APIs for multi PCIe host controller platforms | expand

Message

Vladimir Olovyannikov Nov. 22, 2019, 10:23 p.m. UTC
This patch set contains proposed API changes to the pci uclass for
multi PCIe host controller platforms.

1. Add changes to fix bus number of a host bridge

   Differentiate bus numbers hierarchy for root bridges.
   All bus numbers are device sequence numbers minus
   root bridge sequence number.
   This way, every root bridge and its downstream EPs bus
   numbers start from 0.
   Thus, root bridges are different hierarchy of bus numbers.

2. Get next device fail with driver probe fail

   In Multi PCIe host controller platforms, if one PCIe host driver
   probe fails for any reason, the next PCIe host controller device
   pointer should be tried with its driver probe. Instead, currently
   the code simply stops enumeration. Add the feature described above.

3. Add ability to parse dma-regions given in PCIe host controller's
   DT node.


Srinath Mannam (3):
  drivers: pci: Fix Host bridge bus number issue
  drivers: core: uclass: Get next device fail with driver probe fail
  drivers: pci: pci-uclass: Get PCI dma regions support

 drivers/core/uclass.c    |  2 +-
 drivers/pci/pci-uclass.c | 49 +++++++++++++++++++++++++++++++++++++---
 drivers/pci/pci_auto.c   |  6 ++++-
 include/pci.h            |  2 ++
 4 files changed, 54 insertions(+), 5 deletions(-)