Author: nbd Date: 2014-11-27 21:54:18 +0100 (Thu, 27 Nov 2014) New Revision: 43414
Added: trunk/target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch Log: cns3xxx: fix PCIe->PCI bridge access (fixes #18422) Signed-off-by: Felix Fietkau <[email protected]> Added: trunk/target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch =================================================================== --- trunk/target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch (rev 0) +++ trunk/target/linux/cns3xxx/patches-3.14/121-pcie_fix_bridge_access.patch 2014-11-27 20:54:18 UTC (rev 43414) @@ -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; + } _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
