diff options
author | Claire Chang <tientzu@chromium.org> | 2021-08-27 05:48:02 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2021-08-31 20:48:14 +0200 |
commit | f3c4b1341e8320e63f197a554fc5a25686a11d22 (patch) | |
tree | f3992e02d04863e90e4fa67819f1f0a44bf6d2dc /kernel/dma | |
parent | of: restricted dma: Don't fail device probe on rmem init failure (diff) | |
download | linux-f3c4b1341e8320e63f197a554fc5a25686a11d22.tar.xz linux-f3c4b1341e8320e63f197a554fc5a25686a11d22.zip |
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: 0b84e4f8b793 ("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>
Diffstat (limited to 'kernel/dma')
-rw-r--r-- | kernel/dma/Kconfig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig index 3e961dc39634..d19f9fef4ab9 100644 --- a/kernel/dma/Kconfig +++ b/kernel/dma/Kconfig @@ -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 |