Skip to contentSkip to conversation

PCI: designware: Use pci_scan_root_bus() for simplicity

PATCH New Jingoo Han 2 participants 2 messages May 27, 2015 – Jun 3, 2015 PCI

lore
Share & tools
lore

Jingoo Han

author Acked-by
#0 lore raw
Quoted 10 lines · Yijing Wang

Pci_bus_add_devices() was ripped out of pci_scan_root_bus(). Now pci_scan_root_bus() == pci_create_root_bus() + pci_scan_child_bus() if busn resource is supplied. Designware added the busn resource to resources list in dw_pcie_setup(). So it should be safe to use pci_scan_root_bus() instead.

CC Mohit Kumar <[email protected]>
CC Jingoo Han <[email protected]>

+cc: Pratyush Anand, Lucas Stach

Quoted 3 lines
---
 drivers/pci/host/pcie-designware.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
#1 lore raw

PATCH v11 3/5 PCI: designware: Use pci_scan_root_bus() for simplicity

Quoted 9 lines · Jingoo Han
Quoted 7 lines · Yijing Wang

Pci_bus_add_devices() was ripped out of pci_scan_root_bus(). Now pci_scan_root_bus() == pci_create_root_bus() + pci_scan_child_bus() if busn resource is supplied. Designware added the busn resource to resources list in dw_pcie_setup(). So it should be safe to use pci_scan_root_bus() instead.

Quoted 7 lines
Quoted 3 lines
CC Mohit Kumar <[email protected]>
CC Jingoo Han <[email protected]>

+cc: Pratyush Anand, Lucas Stach

Looks fine to me: