fsl_pci_init - Remove self PCSRBAR allocation
CPU physical address space was being wasted by allocating a PCSRBAR PCI inbound region to it's memory space. As a rule, PCSRBAR should be left alone since it does not affect transactions from self and other masters may have changed it. Signed-off-by: Ed Swarthout <ed.swarthout@freescale.com>
This commit is contained in:
		
							parent
							
								
									0e700ce03a
								
							
						
					
					
						commit
						16e23c3f5d
					
				| 
						 | 
					@ -130,9 +130,14 @@ fsl_pci_init(struct pci_controller *hose)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Call setup to allocate PCSRBAR window */
 | 
						/* Use generic setup_device to initialize standard pci regs,
 | 
				
			||||||
	pciauto_setup_device(hose, dev, 1, hose->pci_mem,
 | 
						 * but do not allocate any windows since any BAR found (such
 | 
				
			||||||
 | 
						 * as PCSRBAR) is not in this cpu's memory space.
 | 
				
			||||||
 | 
						 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pciauto_setup_device(hose, dev, 0, hose->pci_mem,
 | 
				
			||||||
			     hose->pci_prefetch, hose->pci_io);
 | 
								     hose->pci_prefetch, hose->pci_io);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef CONFIG_PCI_NOSCAN
 | 
					#ifndef CONFIG_PCI_NOSCAN
 | 
				
			||||||
	printf ("               Scanning PCI bus %02x\n", hose->current_busno);
 | 
						printf ("               Scanning PCI bus %02x\n", hose->current_busno);
 | 
				
			||||||
	hose->last_busno = pci_hose_scan_bus(hose,hose->current_busno);
 | 
						hose->last_busno = pci_hose_scan_bus(hose,hose->current_busno);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue