diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-03 09:58:37 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-02-17 01:25:38 +0100 |
commit | 617fed41e98417f3ea3e9974be251e125c8796f2 (patch) | |
tree | e3298802b42e780342ef72acf1068423fe0fc320 /arch/mips/ath79 | |
parent | 15b6dcba427d70e61667c28b45e3f090ff00acb1 (diff) | |
download | kernel_goldelico_gta04-617fed41e98417f3ea3e9974be251e125c8796f2.zip kernel_goldelico_gta04-617fed41e98417f3ea3e9974be251e125c8796f2.tar.gz kernel_goldelico_gta04-617fed41e98417f3ea3e9974be251e125c8796f2.tar.bz2 |
MIPS: ath79: allow to specify bus number in PCI IRQ maps
This is needed for multiple PCI bus support.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4913/
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/ath79')
-rw-r--r-- | arch/mips/ath79/pci.c | 4 | ||||
-rw-r--r-- | arch/mips/ath79/pci.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/ath79/pci.c b/arch/mips/ath79/pci.c index c94bcec..d90e071 100644 --- a/arch/mips/ath79/pci.c +++ b/arch/mips/ath79/pci.c @@ -75,7 +75,9 @@ int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin) const struct ath79_pci_irq *entry; entry = &ath79_pci_irq_map[i]; - if (entry->slot == slot && entry->pin == pin) { + if (entry->bus == dev->bus->number && + entry->slot == slot && + entry->pin == pin) { irq = entry->irq; break; } diff --git a/arch/mips/ath79/pci.h b/arch/mips/ath79/pci.h index 51c6625..1d00a38 100644 --- a/arch/mips/ath79/pci.h +++ b/arch/mips/ath79/pci.h @@ -14,6 +14,7 @@ #define _ATH79_PCI_H struct ath79_pci_irq { + int bus; u8 slot; u8 pin; int irq; |