Commit a4f12490 authored by Saravana Kannan's avatar Saravana Kannan Committed by Greg Kroah-Hartman

Revert "iommu/of: Delete usage of driver_deferred_probe_check_state()"

This reverts commit b09796d5.

An issue was reported[1] on the original commit. I'll need to address that
before I can delete the use of driver_deferred_probe_check_state().  So,
bring it back for now.

[1] - https://lore.kernel.org/lkml/4799738.LvFx2qVVIh@steina-w/

Fixes: b09796d5 ("iommu/of: Delete usage of driver_deferred_probe_check_state()")
Reported-by: default avatarJean-Philippe Brucker <jpb@kernel.org>
Tested-by: default avatarJean-Philippe Brucker <jpb@kernel.org>
Tested-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20220819221616.2107893-5-saravanak@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e20813dc
......@@ -40,7 +40,7 @@ static int of_iommu_xlate(struct device *dev,
* a proper probe-ordering dependency mechanism in future.
*/
if (!ops)
return -ENODEV;
return driver_deferred_probe_check_state(dev);
if (!try_module_get(ops->owner))
return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment