diff options
author | Ted Hess <thess@kitschensync.net> | 2016-06-03 17:06:06 -0400 |
---|---|---|
committer | Ted Hess <thess@kitschensync.net> | 2016-06-05 14:07:46 -0400 |
commit | 2ce19c0c1f30af4290e31a3d64d1f0cff8d21824 (patch) | |
tree | 9fa455f54b4e7465573a7f8bf02f240f123e3a4c /target/linux/ixp4xx/patches-4.4/910-ixp4xx-nr_irq_lines.patch | |
parent | a0ea3eab63076d0020dfa1b139fbb87573f25408 (diff) | |
download | mtk-20170518-2ce19c0c1f30af4290e31a3d64d1f0cff8d21824.zip mtk-20170518-2ce19c0c1f30af4290e31a3d64d1f0cff8d21824.tar.gz mtk-20170518-2ce19c0c1f30af4290e31a3d64d1f0cff8d21824.tar.bz2 |
ixp4xx: Add support for 4.4 kernel, refresh patches
Signed-off-by: Ted Hess <thess@kitschensync.net>
Diffstat (limited to 'target/linux/ixp4xx/patches-4.4/910-ixp4xx-nr_irq_lines.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-4.4/910-ixp4xx-nr_irq_lines.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/patches-4.4/910-ixp4xx-nr_irq_lines.patch b/target/linux/ixp4xx/patches-4.4/910-ixp4xx-nr_irq_lines.patch new file mode 100644 index 0000000..06e09f4 --- /dev/null +++ b/target/linux/ixp4xx/patches-4.4/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; + } |