* [U-Boot-Users] [PATCH] Start pci hose scan from current busno
@ 2007-03-06 7:02 Ed Swarthout
2007-03-06 15:18 ` Jon Loeliger
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ed Swarthout @ 2007-03-06 7:02 UTC (permalink / raw)
To: u-boot
Start the pci hose scan from hose->current_busno instead of
first_busno. This allows the PCIe controllers to be scanned
downstream from bridge.
Ensure hose->current_busno is equal or greater than first_busno. This
fixes broken board code which leave current_busno=0 when first_busno
is greater than 0 for the cases with multiple controllers.
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
---
This change will simplify the pending common PCI and PCIe code for the
fsl 85xx and 86xx soc boards.
drivers/pci.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/drivers/pci.c b/drivers/pci.c
index 050582f..4158919 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -490,10 +490,16 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
int pci_hose_scan(struct pci_controller *hose)
{
+ /* Start scan at current_busno.
+ * PCIe will start scan at first_busno+1.
+ */
+ /* For legacy support, ensure current>=first */
+ if (hose->first_busno > hose->current_busno)
+ hose->current_busno = hose->first_busno;
#ifdef CONFIG_PCI_PNP
pciauto_config_init(hose);
#endif
- return pci_hose_scan_bus(hose, hose->first_busno);
+ return pci_hose_scan_bus(hose, hose->current_busno);
}
void pci_init(void)
--
1.5.0.2.279.g4808
^ permalink raw reply related [flat|nested] 4+ messages in thread* [U-Boot-Users] [PATCH] Start pci hose scan from current busno 2007-03-06 7:02 [U-Boot-Users] [PATCH] Start pci hose scan from current busno Ed Swarthout @ 2007-03-06 15:18 ` Jon Loeliger 2007-03-06 16:08 ` Andy Fleming 2007-03-13 2:25 ` Kumar Gala 2 siblings, 0 replies; 4+ messages in thread From: Jon Loeliger @ 2007-03-06 15:18 UTC (permalink / raw) To: u-boot On Tue, 2007-03-06 at 01:02, Ed Swarthout wrote: > Start the pci hose scan from hose->current_busno instead of > first_busno. This allows the PCIe controllers to be scanned > downstream from bridge. > > Ensure hose->current_busno is equal or greater than first_busno. This > fixes broken board code which leave current_busno=0 when first_busno > is greater than 0 for the cases with multiple controllers. > > Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Acked-by: Jon Loeliger <jdl@freescale.com> jdl ^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] [PATCH] Start pci hose scan from current busno 2007-03-06 7:02 [U-Boot-Users] [PATCH] Start pci hose scan from current busno Ed Swarthout 2007-03-06 15:18 ` Jon Loeliger @ 2007-03-06 16:08 ` Andy Fleming 2007-03-13 2:25 ` Kumar Gala 2 siblings, 0 replies; 4+ messages in thread From: Andy Fleming @ 2007-03-06 16:08 UTC (permalink / raw) To: u-boot On 3/6/07, Ed Swarthout <Ed.Swarthout@freescale.com> wrote: > Start the pci hose scan from hose->current_busno instead of > first_busno. This allows the PCIe controllers to be scanned > downstream from bridge. > > Ensure hose->current_busno is equal or greater than first_busno. This > fixes broken board code which leave current_busno=0 when first_busno > is greater than 0 for the cases with multiple controllers. > > Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Acked-by: Andy Fleming <afleming@freescale.com> Andy ^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] [PATCH] Start pci hose scan from current busno 2007-03-06 7:02 [U-Boot-Users] [PATCH] Start pci hose scan from current busno Ed Swarthout 2007-03-06 15:18 ` Jon Loeliger 2007-03-06 16:08 ` Andy Fleming @ 2007-03-13 2:25 ` Kumar Gala 2 siblings, 0 replies; 4+ messages in thread From: Kumar Gala @ 2007-03-13 2:25 UTC (permalink / raw) To: u-boot On Mar 6, 2007, at 1:02 AM, Ed Swarthout wrote: > Start the pci hose scan from hose->current_busno instead of > first_busno. This allows the PCIe controllers to be scanned > downstream from bridge. > > Ensure hose->current_busno is equal or greater than first_busno. This > fixes broken board code which leave current_busno=0 when first_busno > is greater than 0 for the cases with multiple controllers. > > Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Acked-by: Kumar Gala <galak@kernel.crashing.org> - k ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-13 2:25 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-03-06 7:02 [U-Boot-Users] [PATCH] Start pci hose scan from current busno Ed Swarthout 2007-03-06 15:18 ` Jon Loeliger 2007-03-06 16:08 ` Andy Fleming 2007-03-13 2:25 ` Kumar Gala
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox