iommu/omap: add support for late attachment of iommu devices
authorTero Kristo <t-kristo@ti.com>
Wed, 7 Aug 2019 08:26:51 +0000 (11:26 +0300)
committerJoerg Roedel <jroedel@suse.de>
Fri, 9 Aug 2019 15:37:10 +0000 (17:37 +0200)
commit604629bcb5057d778839652f8f38d23734f2fe1d
treec9641dcd4fd6e4329cbdf8d6347d024221552f86
parentd9c4d8a6cc0f852adf3829fbe40e2e3f6213b0c6
iommu/omap: add support for late attachment of iommu devices

Current implementation of OMAP IOMMU enforces strict ordering of device
probe, initiated by iommu and followed by remoteproc later. This doesn't
work too well with the new setup done with ti-sysc changes which may
have the devices probed at pretty much any order. To overcome this limitation,
if iommu has not been probed yet when a consumer tries to attach to it,
add the device to orphan device list which will be parsed during iommu
probe to see if any orphan devices should be attached.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c
drivers/iommu/omap-iommu.h