aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/patches-3.14
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-11-27 20:54:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-11-27 20:54:18 +0000
commitf473f9519613f69fb49688ac479cdc01f4bb1b61 (patch)
treebd9656a75ef93f73d6e83bfe8ba8afb43b9c3009 /target/linux/cns3xxx/patches-3.14
parentceccdc4a31e785e5e5eab65bf7973ef7149d673a (diff)
downloadupstream-f473f9519613f69fb49688ac479cdc01f4bb1b61.tar.gz
upstream-f473f9519613f69fb49688ac479cdc01f4bb1b61.tar.bz2
upstream-f473f9519613f69fb49688ac479cdc01f4bb1b61.zip
cns3xxx: fix PCIe->PCI bridge access (fixes #18422)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43414
Diffstat (limited to 'target/linux/cns3xxx/patches-3.14')
-rw-r--r--target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch b/target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch
new file mode 100644
index 0000000000..d3907bd7af
--- /dev/null
+++ b/target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch
@@ -0,0 +1,11 @@
+--- a/arch/arm/mach-cns3xxx/pcie.c
++++ b/arch/arm/mach-cns3xxx/pcie.c
+@@ -93,6 +93,8 @@ static void __iomem *cns3xxx_pci_cfg_bas
+
+ base = (void __iomem *)cnspci->cfg_bases[type].virtual;
+ offset = (devfn << 12) | (where & 0xffc);
++ if (busno > 1)
++ offset += busno << 20;
+
+ return base + offset;
+ }