From 9e17f251d5bcc87979184351c8a4b729903c57dd Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Wed, 23 Oct 2013 22:26:54 +0000 Subject: [PATCH] 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 SVN-Revision: 38519 --- .../patches-3.10/0034-PCI-imx6-swizzle-interrupts.patch | 8 ++++---- 1 file 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 425ba8a41ec..775bc781798 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 - 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; + } }