diff options
author | Luka Perkov <luka@openwrt.org> | 2013-10-23 22:26:54 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-10-23 22:26:54 +0000 |
commit | 767ada353b16d0bbe06dd77225abd4d30cb96bf2 (patch) | |
tree | 5842613de94da3cf66b6449e2aa7fe4c8855de98 | |
parent | af87bdd27dfe6334ada9259ed30d2ca1d988b442 (diff) | |
download | upstream-767ada353b16d0bbe06dd77225abd4d30cb96bf2.tar.gz upstream-767ada353b16d0bbe06dd77225abd4d30cb96bf2.tar.bz2 upstream-767ada353b16d0bbe06dd77225abd4d30cb96bf2.zip |
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
-rw-r--r-- | target/linux/imx6/patches-3.10/0034-PCI-imx6-swizzle-interrupts.patch | 8 |
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; + } } |