aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-06-21 12:22:47 -0400
committerKumar Gala <galak@kernel.crashing.org>2007-06-29 02:57:07 -0400
commit5ab9c4524d7edd6ae3711bdfd03e4a0deb17fc6e (patch)
treee7adfb3a5abcb5e16f3f2a1cefb5e9c611468286
parentd3c7ffabf0ce31026b2e43490ff694d70c0fbd3a (diff)
[POWERPC] Remove set_cfg_type for PCI indirect users that don't need it
The Freescale and Marvell PCI controllers dont require explicit setting for type 1 config cycles. They handle producing them by implicitly looking at the bus, devfn. The TSI108 and 52xx don't use the generic PCI indirect code and thus don't bother with set_cfg_type. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r--arch/powerpc/platforms/52xx/mpc52xx_pci.c1
-rw-r--r--arch/powerpc/platforms/82xx/mpc82xx_ads.c3
-rw-r--r--arch/powerpc/platforms/83xx/pci.c1
-rw-r--r--arch/powerpc/platforms/85xx/pci.c1
-rw-r--r--arch/powerpc/platforms/86xx/pci.c1
-rw-r--r--arch/powerpc/sysdev/mv64x60_pci.c1
-rw-r--r--arch/powerpc/sysdev/tsi108_pci.c1
7 files changed, 0 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pci.c b/arch/powerpc/platforms/52xx/mpc52xx_pci.c
index 34d34a26d305..51164c851cac 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_pci.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_pci.c
@@ -390,7 +390,6 @@ mpc52xx_add_bridge(struct device_node *node)
390 return -ENOMEM; 390 return -ENOMEM;
391 391
392 hose->arch_data = node; 392 hose->arch_data = node;
393 hose->set_cfg_type = 1;
394 393
395 hose->first_busno = bus_range ? bus_range[0] : 0; 394 hose->first_busno = bus_range ? bus_range[0] : 0;
396 hose->last_busno = bus_range ? bus_range[1] : 0xff; 395 hose->last_busno = bus_range ? bus_range[1] : 0xff;
diff --git a/arch/powerpc/platforms/82xx/mpc82xx_ads.c b/arch/powerpc/platforms/82xx/mpc82xx_ads.c
index 081c0abe4f18..04bf57079c1e 100644
--- a/arch/powerpc/platforms/82xx/mpc82xx_ads.c
+++ b/arch/powerpc/platforms/82xx/mpc82xx_ads.c
@@ -548,14 +548,11 @@ static void __init mpc82xx_add_bridge(struct device_node *np)
548 return; 548 return;
549 549
550 hose->arch_data = np; 550 hose->arch_data = np;
551 hose->set_cfg_type = 1;
552 551
553 hose->first_busno = bus_range ? bus_range[0] : 0; 552 hose->first_busno = bus_range ? bus_range[0] : 0;
554 hose->last_busno = bus_range ? bus_range[1] : 0xff; 553 hose->last_busno = bus_range ? bus_range[1] : 0xff;
555 hose->bus_offset = 0; 554 hose->bus_offset = 0;
556 555
557 hose->set_cfg_type = 1;
558
559 setup_indirect_pci(hose, 556 setup_indirect_pci(hose,
560 r.start + offsetof(pci_cpm2_t, pci_cfg_addr), 557 r.start + offsetof(pci_cpm2_t, pci_cfg_addr),
561 r.start + offsetof(pci_cpm2_t, pci_cfg_data)); 558 r.start + offsetof(pci_cpm2_t, pci_cfg_data));
diff --git a/arch/powerpc/platforms/83xx/pci.c b/arch/powerpc/platforms/83xx/pci.c
index 1752d4577aaf..34716024ed1a 100644
--- a/arch/powerpc/platforms/83xx/pci.c
+++ b/arch/powerpc/platforms/83xx/pci.c
@@ -70,7 +70,6 @@ int __init mpc83xx_add_bridge(struct device_node *dev)
70 if (!hose) 70 if (!hose)
71 return -ENOMEM; 71 return -ENOMEM;
72 hose->arch_data = dev; 72 hose->arch_data = dev;
73 hose->set_cfg_type = 1;
74 73
75 hose->first_busno = bus_range ? bus_range[0] : 0; 74 hose->first_busno = bus_range ? bus_range[0] : 0;
76 hose->last_busno = bus_range ? bus_range[1] : 0xff; 75 hose->last_busno = bus_range ? bus_range[1] : 0xff;
diff --git a/arch/powerpc/platforms/85xx/pci.c b/arch/powerpc/platforms/85xx/pci.c
index 3c38ae4b76c7..72a1bc5e0c2d 100644
--- a/arch/powerpc/platforms/85xx/pci.c
+++ b/arch/powerpc/platforms/85xx/pci.c
@@ -61,7 +61,6 @@ int __init mpc85xx_add_bridge(struct device_node *dev)
61 if (!hose) 61 if (!hose)
62 return -ENOMEM; 62 return -ENOMEM;
63 hose->arch_data = dev; 63 hose->arch_data = dev;
64 hose->set_cfg_type = 1;
65 64
66 hose->first_busno = bus_range ? bus_range[0] : 0; 65 hose->first_busno = bus_range ? bus_range[0] : 0;
67 hose->last_busno = bus_range ? bus_range[1] : 0xff; 66 hose->last_busno = bus_range ? bus_range[1] : 0xff;
diff --git a/arch/powerpc/platforms/86xx/pci.c b/arch/powerpc/platforms/86xx/pci.c
index c1d65fac690d..1e47c145d54d 100644
--- a/arch/powerpc/platforms/86xx/pci.c
+++ b/arch/powerpc/platforms/86xx/pci.c
@@ -172,7 +172,6 @@ int __init mpc86xx_add_bridge(struct device_node *dev)
172 if (!hose) 172 if (!hose)
173 return -ENOMEM; 173 return -ENOMEM;
174 hose->arch_data = dev; 174 hose->arch_data = dev;
175 hose->set_cfg_type = 1;
176 175
177 /* last_busno = 0xfe cause by MPC8641 PCIE bug */ 176 /* last_busno = 0xfe cause by MPC8641 PCIE bug */
178 hose->first_busno = bus_range ? bus_range[0] : 0x0; 177 hose->first_busno = bus_range ? bus_range[0] : 0x0;
diff --git a/arch/powerpc/sysdev/mv64x60_pci.c b/arch/powerpc/sysdev/mv64x60_pci.c
index b5aef4cbc8d2..6b08e76de5a2 100644
--- a/arch/powerpc/sysdev/mv64x60_pci.c
+++ b/arch/powerpc/sysdev/mv64x60_pci.c
@@ -142,7 +142,6 @@ static int __init mv64x60_add_bridge(struct device_node *dev)
142 return -ENOMEM; 142 return -ENOMEM;
143 143
144 hose->arch_data = dev; 144 hose->arch_data = dev;
145 hose->set_cfg_type = 1;
146 145
147 hose->first_busno = bus_range ? bus_range[0] : 0; 146 hose->first_busno = bus_range ? bus_range[0] : 0;
148 hose->last_busno = bus_range ? bus_range[1] : 0xff; 147 hose->last_busno = bus_range ? bus_range[1] : 0xff;
diff --git a/arch/powerpc/sysdev/tsi108_pci.c b/arch/powerpc/sysdev/tsi108_pci.c
index 2153163fa593..33177b60c7ed 100644
--- a/arch/powerpc/sysdev/tsi108_pci.c
+++ b/arch/powerpc/sysdev/tsi108_pci.c
@@ -226,7 +226,6 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary)
226 return -ENOMEM; 226 return -ENOMEM;
227 } 227 }
228 hose->arch_data = dev; 228 hose->arch_data = dev;
229 hose->set_cfg_type = 1;
230 229
231 hose->first_busno = bus_range ? bus_range[0] : 0; 230 hose->first_busno = bus_range ? bus_range[0] : 0;
232 hose->last_busno = bus_range ? bus_range[1] : 0xff; 231 hose->last_busno = bus_range ? bus_range[1] : 0xff;