Skip to content

Commit

Permalink
xtensa/PCI: fix WT caching attribute
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Oct 3, 2012
1 parent 6aebb64 commit 2e6ee5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e6ee5e

Please sign in to comment.