driver: Adopt DMA mask concept from Linux
In order to be able to detect cases where DMA isn't capable of
reaching every memory address, port the concept of DMA mask,
dma_set_mask() function and add appropriate check to
dma_mapping_error().

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 06e9ae9 commit dd0b5b9e8968480e230cf825de3e558a2ee624ad
@Andrey Smirnov Andrey Smirnov authored on 31 Aug 2018
Sascha Hauer committed on 31 Aug 2018
Showing 2 changed files
View
include/dma.h
View
include/driver.h