]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f7aa1b01719270cb7ebcdbbdf293b81a07b25e6
treec9641dcd4fd6e4329cbdf8d6347d024221552f86
parent8961cb2d3a71ae15e4d8ca46d3c3f503e6364364
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