Skip to content
Snippets Groups Projects
Commit 6df0efd5 authored by Ed Swarthout's avatar Ed Swarthout Committed by Wolfgang Denk
Browse files

fsl_pci_init do not scan bus when configured as an end-point

parent 6f099bba
No related branches found
No related tags found
No related merge requests found
...@@ -168,8 +168,21 @@ fsl_pci_init(struct pci_controller *hose) ...@@ -168,8 +168,21 @@ fsl_pci_init(struct pci_controller *hose)
} }
#ifndef CONFIG_PCI_NOSCAN #ifndef CONFIG_PCI_NOSCAN
printf (" Scanning PCI bus %02x\n", hose->current_busno); pci_hose_read_config_byte(hose, dev, PCI_CLASS_PROG, &temp8);
hose->last_busno = pci_hose_scan_bus(hose,hose->current_busno);
/* Programming Interface (PCI_CLASS_PROG)
* 0 == pci host or pcie root-complex,
* 1 == pci agent or pcie end-point
*/
if (!temp8) {
printf(" Scanning PCI bus %02x\n",
hose->current_busno);
hose->last_busno = pci_hose_scan_bus(hose, hose->current_busno);
} else {
debug(" Not scanning PCI bus %02x. PI=%x\n",
hose->current_busno, temp8);
hose->last_busno = hose->current_busno;
}
if ( bridge ) { /* update limit regs and subordinate busno */ if ( bridge ) { /* update limit regs and subordinate busno */
pciauto_postscan_setup_bridge(hose, dev, hose->last_busno); pciauto_postscan_setup_bridge(hose, dev, hose->last_busno);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment