]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm: tegra: pci: correct the page protection flags
authorBibek Basu <bbasu@nvidia.com>
Fri, 23 May 2014 11:54:43 +0000 (17:24 +0530)
committerBharat Nihalani <bnihalani@nvidia.com>
Thu, 29 May 2014 08:52:55 +0000 (01:52 -0700)
Page protection flag updated after PTE_PROT_NONE
is moved up.

Bug 1513681

Change-Id: If0b27d7b0b211ba6488a28fde5fa2d79b477c4be
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/415159
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/pci/host/pci-tegra.c

index a49759f206e150f4ef719b145d38174f23631c4e..606a5ffadde074a2badb5fabb2023a5b05edfa91 100644 (file)
@@ -419,7 +419,8 @@ static struct tegra_pcie_bus *tegra_pcie_bus_alloc(unsigned int busnr)
        pgprot_t prot = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | L_PTE_XN |
                        L_PTE_MT_DEV_SHARED | L_PTE_SHARED;
 #else
-       pgprot_t prot = PTE_PRESENT | PTE_YOUNG | PTE_DIRTY | PTE_XN | PTE_SHARED;
+       pgprot_t prot = PTE_PRESENT | PTE_YOUNG | PTE_DIRTY | PTE_XN |
+               PTE_SHARED | PTE_TYPE_PAGE;
        (void)pgprot_dmacoherent(prot); /* L_PTE_MT_DEV_SHARED */
 #endif