diff options
Diffstat (limited to 'drivers/bcma/host_pci.c')
-rw-r--r-- | drivers/bcma/host_pci.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c index 53c6a8a58859..8dd37dc94cae 100644 --- a/drivers/bcma/host_pci.c +++ b/drivers/bcma/host_pci.c | |||
@@ -310,3 +310,31 @@ void __exit bcma_host_pci_exit(void) | |||
310 | { | 310 | { |
311 | pci_unregister_driver(&bcma_pci_bridge_driver); | 311 | pci_unregister_driver(&bcma_pci_bridge_driver); |
312 | } | 312 | } |
313 | |||
314 | /************************************************** | ||
315 | * Runtime ops for drivers. | ||
316 | **************************************************/ | ||
317 | |||
318 | /* See also pcicore_up */ | ||
319 | void bcma_host_pci_up(struct bcma_bus *bus) | ||
320 | { | ||
321 | if (bus->hosttype != BCMA_HOSTTYPE_PCI) | ||
322 | return; | ||
323 | |||
324 | if (bus->host_is_pcie2) | ||
325 | pr_warn("Bringing up bus with PCIe Gen 2 host is unsupported yet\n"); | ||
326 | else | ||
327 | bcma_core_pci_up(&bus->drv_pci[0]); | ||
328 | } | ||
329 | EXPORT_SYMBOL_GPL(bcma_host_pci_up); | ||
330 | |||
331 | /* See also pcicore_down */ | ||
332 | void bcma_host_pci_down(struct bcma_bus *bus) | ||
333 | { | ||
334 | if (bus->hosttype != BCMA_HOSTTYPE_PCI) | ||
335 | return; | ||
336 | |||
337 | if (!bus->host_is_pcie2) | ||
338 | bcma_core_pci_down(&bus->drv_pci[0]); | ||
339 | } | ||
340 | EXPORT_SYMBOL_GPL(bcma_host_pci_down); | ||