From: Richard Zhu Date: Fri, 18 Jan 2013 00:45:37 +0000 (+0800) Subject: ENGR00240650 pcie: imx: fix ep device no int when pcie switch is used X-Git-Tag: v3.0.35-fsl~149 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=18ad61a6185147ba7e0ad9231b0c4f579fa0c0db;p=karo-tx-linux.git ENGR00240650 pcie: imx: fix ep device no int when pcie switch is used 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 --- diff --git a/arch/arm/mach-mx6/pcie.c b/arch/arm/mach-mx6/pcie.c index 53e0fb960090..69eaf16a8ccf 100644 --- a/arch/arm/mach-mx6/pcie.c +++ b/arch/arm/mach-mx6/pcie.c @@ -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 = {