Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gabor Juhos and committed by
John Crispin
617fed41 15b6dcba

+4 -1
+3 -1
arch/mips/ath79/pci.c
··· 75 75 const struct ath79_pci_irq *entry; 76 76 77 77 entry = &ath79_pci_irq_map[i]; 78 - if (entry->slot == slot && entry->pin == pin) { 78 + if (entry->bus == dev->bus->number && 79 + entry->slot == slot && 80 + entry->pin == pin) { 79 81 irq = entry->irq; 80 82 break; 81 83 }
+1
arch/mips/ath79/pci.h
··· 14 14 #define _ATH79_PCI_H 15 15 16 16 struct ath79_pci_irq { 17 + int bus; 17 18 u8 slot; 18 19 u8 pin; 19 20 int irq;