ARM: another fix for the DMA mapping checks
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 6 Dec 2013 12:30:42 +0000 (12:30 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Dec 2013 23:24:26 +0000 (23:24 +0000)
commit9f28cde0bc643186d32744ce69d12222e8588fe7
tree708995a3df4183d75957b486c3994004e016459a
parent11d4bb1bd067f9d01d18f620ccfad516dc579593
ARM: another fix for the DMA mapping checks

Peter reports that OMAP audio broke with the recent fix for these
checks, caused by OMAP audio using a 64-bit DMA mask.  We should
allow 64-bit DMA masks even with 32-bit dma_addr_t if we can be sure
the amount of RAM we have won't allow the 32-bit dma_addr_t to
overflow.  Unfortunately, the checks to detect overflow were not
correct.

Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c