mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
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: 0b84e4f8b7
("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>
This commit is contained in:
parent
f3cfd136ae
commit
f3c4b1341e
@ -82,8 +82,7 @@ config SWIOTLB
|
|||||||
|
|
||||||
config DMA_RESTRICTED_POOL
|
config DMA_RESTRICTED_POOL
|
||||||
bool "DMA Restricted Pool"
|
bool "DMA Restricted Pool"
|
||||||
depends on OF && OF_RESERVED_MEM
|
depends on OF && OF_RESERVED_MEM && SWIOTLB
|
||||||
select SWIOTLB
|
|
||||||
help
|
help
|
||||||
This enables support for restricted DMA pools which provide a level of
|
This enables support for restricted DMA pools which provide a level of
|
||||||
DMA memory protection on systems with limited hardware protection
|
DMA memory protection on systems with limited hardware protection
|
||||||
|
Loading…
Reference in New Issue
Block a user