aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pci-bridge.h
diff options
context:
space:
mode:
authorRojhalat Ibrahim <imr@rtschenk.de>2013-04-08 04:15:28 -0400
committerKumar Gala <galak@kernel.crashing.org>2013-04-10 11:15:28 -0400
commit50d8f87d2b39313dae9d0a2d9b23d377328f2f7b (patch)
tree10d88cde5443443f400c596a60fd0c5c406da8c3 /arch/powerpc/include/asm/pci-bridge.h
parent34642bbb3d12121333efcf4ea7dfe66685e403a1 (diff)
powerpc/fsl-pci Make PCIe hotplug work with Freescale PCIe controllers
Up to now the PCIe link status on Freescale PCIe controllers was only checked once at boot time. So hotplug did not work. With this patch the link status is checked on every config read. PCIe devices not present at boot time are found after doing 'echo 1 >/sys/bus/pci/rescan'. Signed-off-by: Rojhalat Ibrahim <imr@rtschenk.de> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/pci-bridge.h')
-rw-r--r--arch/powerpc/include/asm/pci-bridge.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h
index c0278f009504..ffbc5fd549ac 100644
--- a/arch/powerpc/include/asm/pci-bridge.h
+++ b/arch/powerpc/include/asm/pci-bridge.h
@@ -120,6 +120,12 @@ extern void setup_indirect_pci(struct pci_controller* hose,
120 resource_size_t cfg_addr, 120 resource_size_t cfg_addr,
121 resource_size_t cfg_data, u32 flags); 121 resource_size_t cfg_data, u32 flags);
122 122
123extern int indirect_read_config(struct pci_bus *bus, unsigned int devfn,
124 int offset, int len, u32 *val);
125
126extern int indirect_write_config(struct pci_bus *bus, unsigned int devfn,
127 int offset, int len, u32 val);
128
123static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) 129static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus)
124{ 130{
125 return bus->sysdata; 131 return bus->sysdata;