[PATCH] iommu/dma: Fix NEED_SG_DMA_LENGTH dependency

Subsystems: iommu subsystem, the rest

STALE3805d

3 messages, 3 authors, 2016-02-29 · open the first message on its own page

[PATCH] iommu/dma: Fix NEED_SG_DMA_LENGTH dependency

From: robin.murphy@arm.com (Robin Murphy)
Date: 2016-02-29 11:13:39

IOMMU_DMA does indeed depend on scatterlists having a DMA length, but
the NEED_SG_DMA_LENGTH symbol should be selected, not depended upon.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
 drivers/iommu/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index b325954..83f1a65 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -70,9 +70,9 @@ config OF_IOMMU
 # IOMMU-agnostic DMA-mapping layer
 config IOMMU_DMA
 	bool
-	depends on NEED_SG_DMA_LENGTH
 	select IOMMU_API
 	select IOMMU_IOVA
+	select NEED_SG_DMA_LENGTH
 
 config FSL_PAMU
 	bool "Freescale IOMMU support"
-- 
2.7.2.333.g70bd996.dirty

[PATCH] iommu/dma: Fix NEED_SG_DMA_LENGTH dependency

From: arnd@arndb.de (Arnd Bergmann)
Date: 2016-02-29 11:30:10

On Monday 29 February 2016 11:13:39 Robin Murphy wrote:
IOMMU_DMA does indeed depend on scatterlists having a DMA length, but
the NEED_SG_DMA_LENGTH symbol should be selected, not depended upon.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>

[PATCH] iommu/dma: Fix NEED_SG_DMA_LENGTH dependency

From: joro@8bytes.org (Joerg Roedel)
Date: 2016-02-29 16:28:46

On Mon, Feb 29, 2016 at 11:13:39AM +0000, Robin Murphy wrote:
IOMMU_DMA does indeed depend on scatterlists having a DMA length, but
the NEED_SG_DMA_LENGTH symbol should be selected, not depended upon.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
 drivers/iommu/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help