lkml.org 
[lkml]   [2022]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v2 8/9] iommu/of: Delete usage of driver_deferred_probe_check_state()
    From
    Now that fw_devlink=on and fw_devlink.strict=1 by default and fw_devlink
    supports iommu DT properties, the execution will never get to the point
    where driver_deferred_probe_check_state() is called before the supplier
    has probed successfully or before deferred probe timeout has expired.

    So, delete the call and replace it with -ENODEV.

    Signed-off-by: Saravana Kannan <saravanak@google.com>
    ---
    drivers/iommu/of_iommu.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c
    index 5696314ae69e..41f4eb005219 100644
    --- a/drivers/iommu/of_iommu.c
    +++ b/drivers/iommu/of_iommu.c
    @@ -40,7 +40,7 @@ static int of_iommu_xlate(struct device *dev,
    * a proper probe-ordering dependency mechanism in future.
    */
    if (!ops)
    - return driver_deferred_probe_check_state(dev);
    + return -ENODEV;

    if (!try_module_get(ops->owner))
    return -ENODEV;
    --
    2.36.1.255.ge46751e96f-goog
    \
     
     \ /
      Last update: 2022-06-01 09:09    [W:5.504 / U:0.180 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site