Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5713310ioo; Wed, 1 Jun 2022 10:56:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy57XAnqtohZme3Ye0UZWnrTg29l0lTYaor324eopEBFrJK+GR3BIH3RljHW6k2iUDFTdU8 X-Received: by 2002:a17:907:7f94:b0:708:272:6a99 with SMTP id qk20-20020a1709077f9400b0070802726a99mr614469ejc.537.1654106194505; Wed, 01 Jun 2022 10:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654106194; cv=none; d=google.com; s=arc-20160816; b=lCBV6WuH2h9DwbJTejD+N3g7vFjw25/Y2g3WKzKyWA6+oS1aSPDc8F+XFHw0WT1qih VfcV1emQjtRaP1Se6qDLS+IYWONsUyH1JKaz97cqgGwkJ9fzCtuqshg4UKZTxEVC6D51 6mpdDriKa+8wBloB/5XweXuoziYnb+MBPOHkBixtpvy9Y3AsjHX8vDDkfsitmWHPKaLo CAZZ22GJf1uPuulJ/WlvM9zgnWuUGuIUikjsr4sJloBLuAZ72Ae9qIzY1/ow7RXOQnCg wiLNxldeOrzRCLrEaH01R8DR5y5EG9QMEsSzDibE23ha+No9biAEymjvbp3ZG8my4Yg2 dC0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=ieoVojKSMClytLuQ+M5eO4VEou/nUlDXxOmFZvVOEG4=; b=F9Cxn5G789G5sX2sXoZYsnKdOm1kCwLo6KZOKOaIWeLbrfyRd5d+5GhCuRILaLu5N8 aVK7NA0gmcrXjqcqymEn40V3AkRibpu99/ujp2hAnOTF9eb5xaZppSLv1pbIRhb+ViYo FHQsKyng0gChZxtTUIbqsuGpji5YLtFAX6t5EryXUFR4jVMA2clpj4BOpT1bKb3O/ZHf 8b5b+EA6s5VYRJNFfHdrRhQ8vClQUKtt0ZFAK2k/aPURp+t0qiP1MoQHyj/nqPElssDX EJ/jm1DCXc5H4KuMGLLmzKrUMnC2IocThvcrwz03Fg57lW7zDiTiVpxiQUzEm7PSYHSx 4x6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=o1NgvjMP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020a1709066dd600b006fea036b38esi2054082ejt.310.2022.06.01.10.56.05; Wed, 01 Jun 2022 10:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=o1NgvjMP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350160AbiFAHH5 (ORCPT + 99 others); Wed, 1 Jun 2022 03:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350137AbiFAHHl (ORCPT ); Wed, 1 Jun 2022 03:07:41 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F35CA91573 for ; Wed, 1 Jun 2022 00:07:35 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-30026cf9af8so8620737b3.3 for ; Wed, 01 Jun 2022 00:07:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=ieoVojKSMClytLuQ+M5eO4VEou/nUlDXxOmFZvVOEG4=; b=o1NgvjMPh9PX/sOxZuAomHF5SvSarttRyUSV3kNkszadpGlu1uv6IEIjpGGDSAjniU E+y2y2wqIU4315xblR8C6Asgjg6o+j6pIfl3cWTp5f6IIF8NSWAIG/pQjRNIrVGQWK7u bzAAetgfksHssMKIVk0hlZADR3xdCXjBT8vitK2WoFnP2URYF0j2EP1rZoglOShrtvyc qAmvvhmnvASj9V9HiH5wLl89R+mdMxkBbulwCtyo+WdMxZ3Z/DsCo3A3fxYxfN42mW3a VAxw0DcJTPmpGr9QH/1qpkX+NneJ0635SNXlJEe3vHn5G8/WiRW8ZSO9HaJRlXugDi6q shTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ieoVojKSMClytLuQ+M5eO4VEou/nUlDXxOmFZvVOEG4=; b=Z9PnsQe1VEPdczJVRanM3OusdYJ4CzZqnn9e9n7dzoDXxrottuA83hex+k8BQG8+B1 byaTTrpCZCPQG3jpKGMs3j3niuV0zte4Xvu7D2NmaiDmGN0hbTzobhbgFFpbTs2U5RLi 8CTp9hoBGKJE7j+8SxyqV+G/uAJE868dTNUVzMotFzbevDmz5wHVkjUN2gQN9XxBG4QR m8HVZUuWsBmvFxzkhnpyXHY5WkvXTUR8diUgCSwGGuuuycb90XHEA1UBrEPGAw+TBqZB Ose6uAFDcDOX3uHwBKVP9stfkkr5/1WLtKG/6ShhfgOhvlICUehon/IrLmtnit5/rr3R wG3Q== X-Gm-Message-State: AOAM531V1xxusnSllPd0WNksZDKddyIlFW3cqhlMGpT1j+qBg2x/fZaj lQ/UB8yxAVFlp1IDWNF2wo8PZ+21S+i8Dz0= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:f3aa:cafe:c20a:e136]) (user=saravanak job=sendgmr) by 2002:a25:c884:0:b0:655:f0bf:9da4 with SMTP id y126-20020a25c884000000b00655f0bf9da4mr34185430ybf.468.1654067255211; Wed, 01 Jun 2022 00:07:35 -0700 (PDT) Date: Wed, 1 Jun 2022 00:07:04 -0700 In-Reply-To: <20220601070707.3946847-1-saravanak@google.com> Message-Id: <20220601070707.3946847-9-saravanak@google.com> Mime-Version: 1.0 References: <20220601070707.3946847-1-saravanak@google.com> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog Subject: [PATCH v2 8/9] iommu/of: Delete usage of driver_deferred_probe_check_state() From: Saravana Kannan To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Len Brown , Pavel Machek , Joerg Roedel , Will Deacon , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Linus Walleij , Hideaki YOSHIFUJI , David Ahern Cc: Saravana Kannan , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux-foundation.org, netdev@vger.kernel.org, linux-gpio@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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