iommu: Export bus_iommu_probe() and make is safe for re-probing
authorJoerg Roedel <jroedel@suse.de>
Wed, 29 Apr 2020 13:36:51 +0000 (15:36 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 5 May 2020 12:36:13 +0000 (14:36 +0200)
commit5012c3968537e2ffecbdb2eba3479bf9fb9e5597
tree6151549496e466e68bed8a68f3e59ccc7587cad1
parentce574c27ae275bc51b6437883fc9cd1c46b498e5
iommu: Export bus_iommu_probe() and make is safe for re-probing

Add a check to the bus_iommu_probe() call-path to make sure it ignores
devices which have already been successfully probed. Then export the
bus_iommu_probe() function so it can be used by IOMMU drivers.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20200429133712.31431-14-joro@8bytes.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
include/linux/iommu.h