Skip to content

Commit

Permalink
[PATCH] AVR32: Don't try to iounmap P2 segment addresses
Browse files Browse the repository at this point in the history
While ioremap() will happily map a physical address through the
P2 (uncached) segment when appropriate, iounmap() doesn't know how
to handle those mappings.

This patch makes iounmap() do the right thing, i.e. nothing, for
such mappings.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Haavard Skinnemoen authored and Linus Torvalds committed Oct 26, 2006
1 parent 6ea850b commit bee8ce8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/avr32/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ void __iounmap(void __iomem *addr)

if ((unsigned long)addr >= P4SEG)
return;
if (PXSEG(addr) == P2SEG)
return;

p = remove_vm_area((void *)(PAGE_MASK & (unsigned long __force)addr));
if (unlikely(!p)) {
Expand Down

0 comments on commit bee8ce8

Please sign in to comment.