diff options
author | Bibek Basu <bbasu@nvidia.com> | 2014-05-23 17:24:43 +0530 |
---|---|---|
committer | Mandar Padmawar <mpadmawar@nvidia.com> | 2014-05-28 05:13:31 -0700 |
commit | b58cfec7ffbbce22326c3ba3e2233ab9d32bf78c (patch) | |
tree | f3f47fd7ff6ddb101c05ba26fb4bc38d812c8c8a | |
parent | 7f018564c9da1d4062bca5d258155d43abe8168c (diff) |
arm: tegra: pci: correct the page protection flags
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>
-rw-r--r-- | drivers/pci/host/pci-tegra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c index 453be9187e6c..359312ad7e3f 100644 --- a/drivers/pci/host/pci-tegra.c +++ b/drivers/pci/host/pci-tegra.c @@ -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 |