]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iommu: Add sysfs bindings for struct iommu_device
authorJoerg Roedel <jroedel@suse.de>
Wed, 1 Feb 2017 15:56:46 +0000 (16:56 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 10 Feb 2017 12:44:57 +0000 (13:44 +0100)
commit39ab9555c24110671f8dc671311a26e5c985b592
tree3b2a4fc649308a7116b48a0ce3a415ac28b814c2
parentb0119e870837dcd15a207b4701542ebac5d19b45
iommu: Add sysfs bindings for struct iommu_device

There is currently support for iommu sysfs bindings, but
those need to be implemented in the IOMMU drivers. Add a
more generic version of this by adding a struct device to
struct iommu_device and use that for the sysfs bindings.

Also convert the AMD and Intel IOMMU driver to make use of
it.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_init.c
drivers/iommu/amd_iommu_types.h
drivers/iommu/dmar.c
drivers/iommu/intel-iommu.c
drivers/iommu/iommu-sysfs.c
include/linux/intel-iommu.h
include/linux/iommu.h