DMA-API: provide a helper to set both DMA and coherent DMA masks
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 9 May 2014 14:58:14 +0000 (15:58 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 12 May 2014 17:10:22 +0000 (18:10 +0100)
commit475e06edbfdad8f7bbc5edb3d803c52e27d84c2a
treebe68c56bd2720b26f96978ba1d65201ef1b0ee8d
parent848bfafd5060b3ab3bd2daf175b527263e3dae16
DMA-API: provide a helper to set both DMA and coherent DMA masks

Provide a helper to set both the DMA and coherent DMA masks to the
same value - this avoids duplicated code in a number of drivers,
sometimes with buggy error handling, and also allows us identify
which drivers do things differently.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit 4aa806b771d16b810771d86ce23c4c3160888db3)
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/DMA-API-HOWTO.txt
Documentation/DMA-API.txt
include/linux/dma-mapping.h