diff options
author | Luka Perkov <luka@openwrt.org> | 2013-10-29 02:19:09 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-10-29 02:19:09 +0000 |
commit | df388048b472ac1739cf7a98134ec8534fa94117 (patch) | |
tree | 9fa7d94c62181b5c0935a770428b7b432c9a462f /target/linux/imx6/patches-3.12/0034-PCI-imx6-swizzle-interrupts.patch | |
parent | b8038b78ecf8e7ceb5fd08a839e12158654b12e9 (diff) | |
download | mtk-20170518-df388048b472ac1739cf7a98134ec8534fa94117.zip mtk-20170518-df388048b472ac1739cf7a98134ec8534fa94117.tar.gz mtk-20170518-df388048b472ac1739cf7a98134ec8534fa94117.tar.bz2 |
imx6: add initial 3.12 support
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38574
Diffstat (limited to 'target/linux/imx6/patches-3.12/0034-PCI-imx6-swizzle-interrupts.patch')
-rw-r--r-- | target/linux/imx6/patches-3.12/0034-PCI-imx6-swizzle-interrupts.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/imx6/patches-3.12/0034-PCI-imx6-swizzle-interrupts.patch b/target/linux/imx6/patches-3.12/0034-PCI-imx6-swizzle-interrupts.patch new file mode 100644 index 0000000..348cc66 --- /dev/null +++ b/target/linux/imx6/patches-3.12/0034-PCI-imx6-swizzle-interrupts.patch @@ -0,0 +1,28 @@ +From 73a0e49b562da9b06e487fb8e051075543495be5 Mon Sep 17 00:00:00 2001 +From: Tim Harvey <tharvey@gateworks.com> +Date: Thu, 17 Oct 2013 15:50:48 -0700 +Subject: [PATCH 1/5] PCI: imx6: swizzle interrupts + + +Signed-off-by: Tim Harvey <tharvey@gateworks.com> +--- + drivers/pci/host/pcie-designware.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +--- a/drivers/pci/host/pcie-designware.c ++++ b/drivers/pci/host/pcie-designware.c +@@ -447,7 +447,13 @@ int dw_pcie_map_irq(const struct pci_dev + { + struct pcie_port *pp = sys_to_pcie(dev->bus->sysdata); + +- return pp->irq; ++ switch (pin) { ++ case 1: return pp->irq - 1; ++ case 2: return pp->irq - 2; ++ case 3: return pp->irq - 3; ++ case 4: return pp->irq; ++ default: return -1; ++ } + } + + static struct hw_pci dw_pci = { |