ARM: dma-mapping: check DMA mask against available memory
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 25 Nov 2013 21:52:25 +0000 (21:52 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 30 Nov 2013 14:45:29 +0000 (14:45 +0000)
commit11a5aa32562e1e90ab2d0278748fe0fbecda1cbe
treee95ebca5e90b3afb5dd1d75bab11c5230542ffc4
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
ARM: dma-mapping: check DMA mask against available memory

Some buses have negative offsets, which causes the DMA mask checks to
falsely fail.  Fix this by using the actual amount of memory fitted in
the system.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c