imx6: fix pcie interrupt mapping
authorluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 23 Oct 2013 22:26:54 +0000 (22:26 +0000)
committerluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 23 Oct 2013 22:26:54 +0000 (22:26 +0000)
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

target/linux/imx6/patches-3.10/0034-PCI-imx6-swizzle-interrupts.patch

index 425ba8a..775bc78 100644 (file)
@@ -17,10 +17,10 @@ Signed-off-by: Tim Harvey <tharvey@gateworks.com>
  
 -      return pp->irq;
 +      switch (pin) {
  
 -      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;
 +      }
  }
 +      default: return -1;
 +      }
  }