Commit 2e6ee5ec authored by Max Filippov's avatar Max Filippov Committed by Chris Zankel

xtensa/PCI: fix WT caching attribute

Fix caching attributes setup providing correct _PAGE_CA_* names.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent 6aebb64a
...@@ -341,7 +341,7 @@ __pci_mmap_set_pgprot(struct pci_dev *dev, struct vm_area_struct *vma, ...@@ -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); int prot = pgprot_val(vma->vm_page_prot);
/* Set to write-through */ /* Set to write-through */
prot &= ~_PAGE_NO_CACHE; prot = (prot & _PAGE_CA_MASK) | _PAGE_CA_WT;
#if 0 #if 0
if (!write_combine) if (!write_combine)
prot |= _PAGE_WRITETHRU; prot |= _PAGE_WRITETHRU;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment