]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00240650 pcie: imx: fix ep device no int when pcie switch is used
authorRichard Zhu <r65037@freescale.com>
Fri, 18 Jan 2013 00:45:37 +0000 (08:45 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:51 +0000 (08:35 +0200)
The pcie ep device inserted into the downstream port of the
pcie switch doesn't get the legacy INT when pcie switch
is used.

Signed-off-by: Richard Zhu <r65037@freescale.com>
arch/arm/mach-mx6/pcie.c

index 53e0fb9600908fe558befbb7182e9b6a65e97745..69eaf16a8ccf745cb18932bb3e94cefc724a3dfe 100644 (file)
@@ -466,7 +466,13 @@ imx_pcie_scan_bus(int nr, struct pci_sys_data *sys)
 
 static int __init imx_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
 {
-       return MXC_INT_PCIE_3;
+       switch (pin) {
+       case 1: return MXC_INT_PCIE_3;
+       case 2: return MXC_INT_PCIE_2;
+       case 3: return MXC_INT_PCIE_1;
+       case 4: return MXC_INT_PCIE_0;
+       default: return -1;
+       }
 }
 
 static struct hw_pci imx_pci __initdata = {