History

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.

Joerg Roedel committed 6 years ago

Commit 5012c391 parent ce574c22 files · +10 −1Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/iommu.h+1−0
@@ -445,6 +445,7 @@ static inline void iommu_iotlb_gather_init(struct iommu_iotlb_gather *gather) · 444 unmodified lines
445445 #define IOMMU_GROUP_NOTIFY_UNBOUND_DRIVER 6 /* Post Driver unbind */
446446
447447 extern int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops);
448+extern int bus_iommu_probe(struct bus_type *bus);
448449 extern bool iommu_present(struct bus_type *bus);
449450 extern bool iommu_capable(struct bus_type *bus, enum iommu_cap cap);
450451 extern struct iommu_domain *iommu_domain_alloc(struct bus_type *bus);