Skip to content

Commit 91446e3

Browse files
committed
iommu: Fix breakage when second IOMMU defers probe
Signed-off-by: Hector Martin <[email protected]>
1 parent 2686fe8 commit 91446e3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/iommu/iommu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2900,6 +2900,8 @@ int iommu_fwspec_assign_iommu(struct iommu_fwspec *fwspec, struct device *dev,
29002900
* same driver, checked via same ops.
29012901
*/
29022902
ops = iommu_ops_from_fwnode(iommu_fwnode);
2903+
if (!ops)
2904+
return driver_deferred_probe_check_state(dev);
29032905
if (fwspec->ops != ops)
29042906
return -EINVAL;
29052907
return 0;

0 commit comments

Comments
 (0)