summaryrefslogtreecommitdiff
path: root/target/linux/imx6/patches-3.10
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-23 22:26:54 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-23 22:26:54 +0000
commit9e17f251d5bcc87979184351c8a4b729903c57dd (patch)
tree4006973c8f1e5d8dc9f4c7b5061c430fb4ad1f23 /target/linux/imx6/patches-3.10
parent2f4ae98018b34a230d14dee134e29bd1800da5af (diff)
downloadmtk-20170518-9e17f251d5bcc87979184351c8a4b729903c57dd.zip
mtk-20170518-9e17f251d5bcc87979184351c8a4b729903c57dd.tar.gz
mtk-20170518-9e17f251d5bcc87979184351c8a4b729903c57dd.tar.bz2
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> SVN-Revision: 38519
Diffstat (limited to 'target/linux/imx6/patches-3.10')
-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 425ba8a..775bc78 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;
+ }
}