All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] pci: Update the highest subordinate bus number for bridge setup
@ 2021-04-16 21:53 Tim Harvey
  2021-04-16 21:53 ` [PATCH 2/3] pci: pci-uclass: Add board_pci_fixup_dev for DM_PCI Tim Harvey
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Tim Harvey @ 2021-04-16 21:53 UTC (permalink / raw)
  To: u-boot

From: Masami Hiramatsu <masami.hiramatsu@linaro.org>

Update the highest subordinate bus number after probing the devices
under the bus for setting up the bridge correctly.
The commit 42f3663a3f67 ("pci: Update to use new sequence numbers")
removed this but it is required if a PCIe bridge is under the bus.

Fixes: 42f3663a3f67 ("pci: Update to use new sequence numbers")
Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
---
 drivers/pci/pci-uclass.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index dfd54b339f..f463ef3550 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -646,6 +646,9 @@ int dm_pci_hose_probe_bus(struct udevice *bus)
 		return log_msg_ret("probe", ret);
 	}
 
+	if (!ea_pos)
+		sub_bus = pci_get_bus_max();
+
 	dm_pciauto_postscan_setup_bridge(bus, sub_bus);
 
 	return sub_bus;
-- 
2.17.1

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

end of thread, other threads:[~2021-06-09 13:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-16 21:53 [PATCH 1/3] pci: Update the highest subordinate bus number for bridge setup Tim Harvey
2021-04-16 21:53 ` [PATCH 2/3] pci: pci-uclass: Add board_pci_fixup_dev for DM_PCI Tim Harvey
2021-05-02 11:42   ` stefano.babic at babic.homelinux.org
2021-04-16 21:53 ` [PATCH 3/3] imx: ventana: enable dm support for PCI and FEC ethernet Tim Harvey
2021-05-02 11:38   ` Stefano Babic
2021-05-03 18:21   ` [PATCH] " Tim Harvey
2021-05-29  1:22     ` Tim Harvey
2021-06-09 13:44     ` sbabic
2021-04-16 22:30 ` [PATCH 1/3] pci: Update the highest subordinate bus number for bridge setup Masami Hiramatsu
2021-04-16 22:35   ` Tim Harvey
2021-04-16 23:19     ` Masami Hiramatsu
2021-05-02 11:43 ` stefano.babic at babic.homelinux.org

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.