summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRichard Zhu <r65037@freescale.com>2013-01-18 08:45:37 +0800
committerRichard Zhu <r65037@freescale.com>2013-01-18 16:20:57 +0800
commit28cae967e1c12702f2d877b7613b1b0ca594ab64 (patch)
tree78f67b9961c63f56e2bce40af04ec482481604bb /arch
parent844aab72e7edcdced9f8e4e0d8e54eb4b0461cd9 (diff)
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 <r65037@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/pcie.c8
1 files changed, 7 insertions, 1 deletions
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 = {