]> git.ipfire.org Git - people/ms/linux.git/commit
DMA-API: provide a helper to set both DMA and coherent DMA masks
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 26 Jun 2013 12:49:44 +0000 (13:49 +0100)
committerJiri Slaby <jslaby@suse.cz>
Tue, 26 Aug 2014 12:12:07 +0000 (14:12 +0200)
commit8bac7a35e60ca70c8d12ddbfdf28a8df5a976b2b
tree882872027b4a5ad11a6c2c5929ba54c8e56f2341
parentd9be25f8975760c11671fb0d214bfeb25c9bc2b3
DMA-API: provide a helper to set both DMA and coherent DMA masks

commit 4aa806b771d16b810771d86ce23c4c3160888db3 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Documentation/DMA-API-HOWTO.txt
Documentation/DMA-API.txt
include/linux/dma-mapping.h