Skip to content

Commit f3c4b13

Browse files
Claire Changkonradwilk
authored andcommitted
swiotlb: use depends on for DMA_RESTRICTED_POOL
Use depends on instead of select for DMA_RESTRICTED_POOL; otherwise it will make SWIOTLB user configurable and cause compile errors for some arch (e.g. mips). Fixes: 0b84e4f ("swiotlb: Add restricted DMA pool initialization") Acked-by: Will Deacon <will@kernel.org> Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Claire Chang <tientzu@chromium.org> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
1 parent f3cfd13 commit f3c4b13

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

kernel/dma/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ config SWIOTLB
8282

8383
config DMA_RESTRICTED_POOL
8484
bool "DMA Restricted Pool"
85-
depends on OF && OF_RESERVED_MEM
86-
select SWIOTLB
85+
depends on OF && OF_RESERVED_MEM && SWIOTLB
8786
help
8887
This enables support for restricted DMA pools which provide a level of
8988
DMA memory protection on systems with limited hardware protection

0 commit comments

Comments
 (0)