]> 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)
committerMandar Padmawar <mpadmawar@nvidia.com>
Wed, 28 May 2014 12:13:31 +0000 (05:13 -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/414128
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jay Agarwal <jagarwal@nvidia.com>
Tested-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/pci/host/pci-tegra.c

index 453be9187e6c1d3a68802d83960b3f66af2662fe..359312ad7e3f19ae5fdd5de2e19bcbbde3036f15 100644 (file)
@@ -387,7 +387,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