aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-09-16 21:44:33 -0400
committerChris Zankel <chris@zankel.net>2012-10-03 18:11:13 -0400
commit2e6ee5ec88dd9d4d4e934709200259538160039d (patch)
treebad91316a924581ca08198e2a950c0b57d6f6a5d
parent6aebb64ad415c7d63ad4db5b401f960fe7b1d972 (diff)
xtensa/PCI: fix WT caching attribute
Fix caching attributes setup providing correct _PAGE_CA_* names. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
-rw-r--r--arch/xtensa/kernel/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/pci.c b/arch/xtensa/kernel/pci.c
index 69759e9cb3e..43e9fdce40d 100644
--- a/arch/xtensa/kernel/pci.c
+++ b/arch/xtensa/kernel/pci.c
@@ -341,7 +341,7 @@ __pci_mmap_set_pgprot(struct pci_dev *dev, struct vm_area_struct *vma,
341 int prot = pgprot_val(vma->vm_page_prot); 341 int prot = pgprot_val(vma->vm_page_prot);
342 342
343 /* Set to write-through */ 343 /* Set to write-through */
344 prot &= ~_PAGE_NO_CACHE; 344 prot = (prot & _PAGE_CA_MASK) | _PAGE_CA_WT;
345#if 0 345#if 0
346 if (!write_combine) 346 if (!write_combine)
347 prot |= _PAGE_WRITETHRU; 347 prot |= _PAGE_WRITETHRU;