iommu/ipmmu-vmsa: Link IOMMUs and devices in sysfs
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 May 2019 11:52:48 +0000 (13:52 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Jun 2019 10:18:02 +0000 (12:18 +0200)
commit80eaa9f558134a31c10dddb156d347b9c983290e
treeddbcdc9649a33efc58fbaa188f73dfc55a7c92df
parentf2c7c76c5d0a443053e94adb9f0918fa2fb85c3a
iommu/ipmmu-vmsa: Link IOMMUs and devices in sysfs

As of commit 7af9a5fdb9e0ca33 ("iommu/ipmmu-vmsa: Use
iommu_device_sysfs_add()/remove()"), IOMMU devices show up under
/sys/class/iommu/, but their "devices" subdirectories are empty.
Likewise, devices tied to an IOMMU do not have an "iommu" backlink.

Make sure all links are created, on both arm32 and arm64.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c