summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-10-23 22:26:54 +0000
committerluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-10-23 22:26:54 +0000
commit6b68a4740ff3ff42cf111d8d1aed51372c7ff659 (patch)
tree5842613de94da3cf66b6449e2aa7fe4c8855de98 /target/linux
parent892f5b1eaa2200f14467fb48da656e61dc9075e2 (diff)
imx6: fix pcie interrupt mapping
The interrupt mapping for legacy interrupts was backwards causing interrupts to be mapped improperly behind a PCIe to PCI bridge (ie GW16082 mezzanine). Signed-off-by: Tim Harvey <tharvey@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38519 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/imx6/patches-3.10/0034-PCI-imx6-swizzle-interrupts.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/imx6/patches-3.10/0034-PCI-imx6-swizzle-interrupts.patch b/target/linux/imx6/patches-3.10/0034-PCI-imx6-swizzle-interrupts.patch
index 425ba8a41e..775bc78179 100644
--- a/target/linux/imx6/patches-3.10/0034-PCI-imx6-swizzle-interrupts.patch
+++ b/target/linux/imx6/patches-3.10/0034-PCI-imx6-swizzle-interrupts.patch
@@ -17,10 +17,10 @@ Signed-off-by: Tim Harvey <tharvey@gateworks.com>
- return pp->irq;
+ switch (pin) {
-+ case 1: return pp->irq;
-+ case 2: return pp->irq - 1;
-+ case 3: return pp->irq - 2;
-+ case 4: return pp->irq - 3;
++ case 1: return pp->irq - 3;
++ case 2: return pp->irq - 2;
++ case 3: return pp->irq - 1;
++ case 4: return pp->irq;
+ default: return -1;
+ }
}