d3907bd7af2168be7fbe248f257ccfa28ffd0344
[openwrt/openwrt.git] / target / linux / cns3xxx / patches-3.14 / 121-pcie_fix_bridge_access.patch
1 --- a/arch/arm/mach-cns3xxx/pcie.c
2 +++ b/arch/arm/mach-cns3xxx/pcie.c
3 @@ -93,6 +93,8 @@ static void __iomem *cns3xxx_pci_cfg_bas
4
5 base = (void __iomem *)cnspci->cfg_bases[type].virtual;
6 offset = (devfn << 12) | (where & 0xffc);
7 + if (busno > 1)
8 + offset += busno << 20;
9
10 return base + offset;
11 }