iommu/omap: Change the attach detection logic
authorSuman Anna <s-anna@ti.com>
Tue, 5 Sep 2017 22:56:17 +0000 (17:56 -0500)
committerJoerg Roedel <jroedel@suse.de>
Tue, 19 Sep 2017 09:32:05 +0000 (11:32 +0200)
commit0d3642883b092ccfc0b044c6581ee2c1f32ab165
treead2fb798eadcacd01e94b73e6a215f88f7021691
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
iommu/omap: Change the attach detection logic

The OMAP IOMMU driver allows only a single device (eg: a rproc
device) to be attached per domain. The current attach detection
logic relies on a check for an attached iommu for the respective
client device. Change this logic to use the client device pointer
instead in preparation for supporting multiple iommu devices to be
bound to a single iommu domain, and thereby to a client device.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c