aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ixp4xx/patches-4.9/910-ixp4xx-nr_irq_lines.patch
diff options
context:
space:
mode:
authorTed Hess <thess@kitschensync.net>2017-11-18 08:21:38 -0500
committerTed Hess <thess@kitschensync.net>2017-11-18 08:21:38 -0500
commit358df5e4fc378d8c20ad4a0983fa6ccba17212b6 (patch)
tree01d4969090e45e943e7a7453129e98692229e5e8 /target/linux/ixp4xx/patches-4.9/910-ixp4xx-nr_irq_lines.patch
parent6fcf4228d8f8ff6d9505490a7e9bddbebb11f00f (diff)
downloadupstream-358df5e4fc378d8c20ad4a0983fa6ccba17212b6.tar.gz
upstream-358df5e4fc378d8c20ad4a0983fa6ccba17212b6.tar.bz2
upstream-358df5e4fc378d8c20ad4a0983fa6ccba17212b6.zip
ixp4xx: Update to 4.9 kernel, refresh patches. Remove kmod-spi-gpio-old usage.
Signed-off-by: Ted Hess <thess@kitschensync.net>
Diffstat (limited to 'target/linux/ixp4xx/patches-4.9/910-ixp4xx-nr_irq_lines.patch')
-rw-r--r--target/linux/ixp4xx/patches-4.9/910-ixp4xx-nr_irq_lines.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/patches-4.9/910-ixp4xx-nr_irq_lines.patch b/target/linux/ixp4xx/patches-4.9/910-ixp4xx-nr_irq_lines.patch
new file mode 100644
index 0000000000..06e09f469d
--- /dev/null
+++ b/target/linux/ixp4xx/patches-4.9/910-ixp4xx-nr_irq_lines.patch
@@ -0,0 +1,22 @@
+--- a/arch/arm/mach-ixp4xx/ixdp425-pci.c
++++ b/arch/arm/mach-ixp4xx/ixdp425-pci.c
+@@ -53,7 +53,7 @@ static int __init ixdp425_map_irq(const
+ };
+
+ if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES)
+- return pci_irq_table[(slot + pin - 2) % 4];
++ return pci_irq_table[(slot + pin - 2) % IRQ_LINES];
+
+ return -1;
+ }
+--- a/arch/arm/mach-ixp4xx/miccpt-pci.c
++++ b/arch/arm/mach-ixp4xx/miccpt-pci.c
+@@ -54,7 +54,7 @@ static int __init miccpt_map_irq(const s
+ };
+
+ if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES)
+- return pci_irq_table[(slot + pin - 2) % 4];
++ return pci_irq_table[(slot + pin - 2) % IRQ_LINES];
+
+ return -1;
+ }