Skip to content

PCI: Simplify bus range parsing

Bjorn Helgaas linux-pci lkml sparclinux 2 versions – Applied

Status from this message: Applied to pci/of for v6.14.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesApplied
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

(https://lore.kernel.org/r/[email protected]):
- Fix compile error
- Drop 'No bus range found' message
- Add Ack from Andreas for the sparc/PCI comment update
- Add Reviewed-by from Rob for the unexport patch

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4PCI: Unexport of_pci_parse_bus_range()drivers/pci/of.c drivers/pci/pci.h+2 -91 reply
2/4PCI: of: Drop 'No bus range found' messagedrivers/pci/of.c+0 -21 reply
3/4PCI: of: Simplify devm_of_pci_get_host_bridge_resources() interfacedrivers/pci/of.c+8 -82 replies
4/4sparc/PCI: Update reference to devm_of_pci_get_host_bridge_resources()arch/sparc/kernel/pci_common.c+1 -11 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Andreas LarssonKuppuswamy Sathyanarayanan
1/4R-b R-b
2/4R-b
3/4
4/4A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] PCI: Simplify bus range parsing

From: Bjorn Helgaas <[email protected]>

Unexport of_pci_parse_bus_range() since it's only used in drivers/pci/of.c.

Drop the "No bus range found" message since host bridges typically lead to [bus 00-ff], and we already default to that if there is no "bus-range" DT property, so there's no point in requiring it in DT or complaining if it's not there.

Drop bus range parameters from devm_of_pci_get_host_bridge_resources() since they're always the same values.

Update a sparc comment that referred to of_pci_get_host_bridge_resources(), which no longer exists.

Bjorn Helgaas (4):
PCI: Unexport of_pci_parse_bus_range()
PCI: of: Drop 'No bus range found' message
PCI: of: Simplify devm_of_pci_get_host_bridge_resources() interface sparc/PCI: Update reference to devm_of_pci_get_host_bridge_resources()

 arch/sparc/kernel/pci_common.c |  2 +-
 drivers/pci/of.c               | 22 ++++++++++------------
 drivers/pci/pci.h              |  7 -------
 3 files changed, 11 insertions(+), 20 deletions(-)

Changes since v1
(https://lore.kernel.org/r/[email protected]):
- Fix compile error
- Drop 'No bus range found' message
- Add Ack from Andreas for the sparc/PCI comment update
- Add Reviewed-by from Rob for the unexport patch