]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
xtensa/PCI: fix WT caching attribute
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 6 Jul 2012 14:54:06 +0000 (18:54 +0400)
committerChris Zankel <chris@zankel.net>
Sat, 11 Aug 2012 02:22:29 +0000 (19:22 -0700)
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>
arch/xtensa/kernel/pci.c

index 69759e9cb3ea8b6efd9ddca47c3578c7a5d253a8..43e9fdce40d665c71452cdbfe318af60131a93bf 100644 (file)
@@ -341,7 +341,7 @@ __pci_mmap_set_pgprot(struct pci_dev *dev, struct vm_area_struct *vma,
        int prot = pgprot_val(vma->vm_page_prot);
 
        /* Set to write-through */
-       prot &= ~_PAGE_NO_CACHE;
+       prot = (prot & _PAGE_CA_MASK) | _PAGE_CA_WT;
 #if 0
        if (!write_combine)
                prot |= _PAGE_WRITETHRU;