diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-11-27 20:54:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-11-27 20:54:18 +0000 |
commit | f473f9519613f69fb49688ac479cdc01f4bb1b61 (patch) | |
tree | bd9656a75ef93f73d6e83bfe8ba8afb43b9c3009 | |
parent | ceccdc4a31e785e5e5eab65bf7973ef7149d673a (diff) | |
download | master-31e0f0ae-f473f9519613f69fb49688ac479cdc01f4bb1b61.tar.gz master-31e0f0ae-f473f9519613f69fb49688ac479cdc01f4bb1b61.tar.bz2 master-31e0f0ae-f473f9519613f69fb49688ac479cdc01f4bb1b61.zip |
cns3xxx: fix PCIe->PCI bridge access (fixes #18422)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43414
-rw-r--r-- | target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch | 11 |
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; + } |