summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-08-20 09:44:00 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2007-08-29 00:16:54 -0500
commit9468e6804b7e25b0f6f52e53f47bce3175400a16 (patch)
tree24120d1d4a9445020f92787bf737793b629f29c2 /drivers
parent4bf4abb8a4e9955556b120a1aafa30c03e74032a (diff)
Fix MPC8544DS PCIe3 scsi.
<ed.swarthout@freescale.com> The problem is pciauto_setup_device() getting called from fsl_pci_init.c is allocating memory space it doesn't need. Signed-off-by: Ed Swarthout <ed.swarthout@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/fsl_pci_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/fsl_pci_init.c b/drivers/fsl_pci_init.c
index 3a13eea1f2..a4ce458a5a 100644
--- a/drivers/fsl_pci_init.c
+++ b/drivers/fsl_pci_init.c
@@ -54,6 +54,7 @@ fsl_pci_init(struct pci_controller *hose)
u8 temp8;
int r;
int bridge;
+ unsigned long bus_lower_temp;
volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) hose->cfg_addr;
pci_dev_t dev = PCI_BDF(busno,0,0);
@@ -134,9 +135,10 @@ fsl_pci_init(struct pci_controller *hose)
* but do not allocate any windows since any BAR found (such
* as PCSRBAR) is not in this cpu's memory space.
*/
-
+ bus_lower_temp = hose->pci_mem->bus_lower;
pciauto_setup_device(hose, dev, 0, hose->pci_mem,
hose->pci_prefetch, hose->pci_io);
+ hose->pci_mem->bus_lower = bus_lower_temp;
#ifndef CONFIG_PCI_NOSCAN
printf (" Scanning PCI bus %02x\n", hose->current_busno);