diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2011-07-22 19:20:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-08 14:29:25 -0400 |
commit | ecd177c21640e92b059a71139f5850243a8f0942 (patch) | |
tree | 70ed92f7b63087bec0a6036dca1c81403d65c86d /drivers/bcma/driver_pci.c | |
parent | 517f43e5a922d51ac960424de4f72676fe6a7390 (diff) |
bcma: add SOC bus
This patch adds support for using bcma on a Broadcom SoC as the system
bus. An SoC like the bcm4716 could register this bus and use it to
searches for the bcma cores and register the devices on this bus.
BCMA_HOSTTYPE_NONE was intended for SoCs at first but BCMA_HOSTTYPE_SOC
is a better name.
Acked-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/driver_pci.c')
-rw-r--r-- | drivers/bcma/driver_pci.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/bcma/driver_pci.c b/drivers/bcma/driver_pci.c index 4e082100fa9b..405537662392 100644 --- a/drivers/bcma/driver_pci.c +++ b/drivers/bcma/driver_pci.c | |||
@@ -210,7 +210,14 @@ int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core, | |||
210 | { | 210 | { |
211 | struct pci_dev *pdev = pc->core->bus->host_pci; | 211 | struct pci_dev *pdev = pc->core->bus->host_pci; |
212 | u32 coremask, tmp; | 212 | u32 coremask, tmp; |
213 | int err; | 213 | int err = 0; |
214 | |||
215 | if (core->bus->hosttype != BCMA_HOSTTYPE_PCI) { | ||
216 | /* This bcma device is not on a PCI host-bus. So the IRQs are | ||
217 | * not routed through the PCI core. | ||
218 | * So we must not enable routing through the PCI core. */ | ||
219 | goto out; | ||
220 | } | ||
214 | 221 | ||
215 | err = pci_read_config_dword(pdev, BCMA_PCI_IRQMASK, &tmp); | 222 | err = pci_read_config_dword(pdev, BCMA_PCI_IRQMASK, &tmp); |
216 | if (err) | 223 | if (err) |