提交 f3c4b134 编写于 作者: C Claire Chang 提交者: Konrad Rzeszutek Wilk

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: 0b84e4f8 ("swiotlb: Add restricted DMA pool initialization")
Acked-by: NWill Deacon <will@kernel.org>
Reported-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NClaire Chang <tientzu@chromium.org>
Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 f3cfd136
......@@ -82,8 +82,7 @@ config SWIOTLB
config DMA_RESTRICTED_POOL
bool "DMA Restricted Pool"
depends on OF && OF_RESERVED_MEM
select SWIOTLB
depends on OF && OF_RESERVED_MEM && SWIOTLB
help
This enables support for restricted DMA pools which provide a level of
DMA memory protection on systems with limited hardware protection
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册