]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bc374002a3d2ea5bc700b6557df161a83bcdf93
treee95ebca5e90b3afb5dd1d75bab11c5230542ffc4
parent446a01ebfd5c46dcad993153e533f5f1d30e2d44
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