]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80872e30b072a8683bfed09f6b7bc109fb79634f
tree708995a3df4183d75957b486c3994004e016459a
parent38ba2fc708aa1f440950d5bc962c8b14d78a82bf
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