summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2019-01-02 23:16:57 +0200
committerJoerg Roedel <jroedel@suse.de>2019-01-11 12:26:43 +0100
commitbd3c2e66e4cb91ed9294b5da920deeb45db0c13a (patch)
tree9be0df4e198076ce0bc9de8acb5381f560b761e8 /drivers/iommu
parentbfeffd155283772bbe78c6a05dec7c0128ee500c (diff)
downloadlinux-bd3c2e66e4cb91ed9294b5da920deeb45db0c13a.tar.gz
linux-bd3c2e66e4cb91ed9294b5da920deeb45db0c13a.tar.bz2
linux-bd3c2e66e4cb91ed9294b5da920deeb45db0c13a.zip
iommu/iova: Allow compiling the library without IOMMU support
Drivers such as the Intel IPU3 ImgU driver use the IOVA library to manage the device's own virtual address space while not implementing the IOMMU API. Currently the IOVA library is only compiled if the IOMMU support is enabled, resulting into a failure during linking due to missing symbols. Fix this by defining IOVA library Kconfig bits independently of IOMMU support configuration, and descending to the iommu directory unconditionally during the build. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/Kconfig7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index d9a25715650e..d2c83e62873d 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -1,3 +1,7 @@
+# The IOVA library may also be used by non-IOMMU_API users
+config IOMMU_IOVA
+ tristate
+
# IOMMU_API always gets selected by whoever wants it.
config IOMMU_API
bool
@@ -81,9 +85,6 @@ config IOMMU_DEFAULT_PASSTHROUGH
If unsure, say N here.
-config IOMMU_IOVA
- tristate
-
config OF_IOMMU
def_bool y
depends on OF && IOMMU_API