Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2097530rwb; Fri, 19 Aug 2022 15:20:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ip1fCgZNIDvCNZN4S2WS8JJQBCUPXhnauaGau2hvG+K9ZGMv663BrAFhTYD2KzkPDkPOI X-Received: by 2002:a17:902:da92:b0:16e:fa52:d42c with SMTP id j18-20020a170902da9200b0016efa52d42cmr9477590plx.75.1660947616681; Fri, 19 Aug 2022 15:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660947616; cv=none; d=google.com; s=arc-20160816; b=opLvAMPi5T6uRXbFI5TT0c4ssWVmUI7pGKu3fPoyZdRbwNFSPQGlM9njlqz/bnrJp5 F15PydTeOK5cQAHWoqg1sQePXkLUJ8km7fyIU5Yjdplri8LJpQw4oJ7lrx85XMfIefzz lR43bqJ3DqMCc6/MTwWqVQiHFfUo66gBFUVgtj2KhQm3QAA6L4SHCagEGIDCRZOyiR9M BRvT9iOoWpvXsjpVE5tkNo0U9/bN0b7HhYOn8ykprEGTp6qr8PxJwB3eVC84ov0xsfOg 5tPkB03/zg68F4G4gR37XE9N/qYb/K58bWL6hQBTMOZMb6aSe4+nc+ZvE63NW1ALIZi4 Cx8w== 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=H3YEiHHCZDHfvJiU4fCYVtnbVB8iHyjPM7ELjaj28Ew=; b=QYHoIc9Bg377GnBCLPtlgA7CIIiF9jUs1ZP24fP1Q2Vrt0bXSd7OdiY2aVgw8RI9fI xZEfsYph+HD8vfkjXoWGOW8JyA+kDXzZPWrpoBy0EbvtYkX9OOnsDVRc4VdEYKvlAMY6 frAzDcb4sj6lFd5hDfQkCb/Sl1jK4ruTEvNl3TY9+ngut9Z3rHeNpNxRGpZVC7M/bHbK 7pVPbRRTqz04EbcnebNPzilKUfqk1R6QEtZTGIv8Vfdin32rj9SDKQHtDoRSBgDRzL0a YcyCLMoitA4DEHKo2JR7rNRPv/cpEtHqemHolhtMaxAkXhWTwMr+92nRW50w+5YrPvnP QX7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=X1U73b0X; 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 z6-20020aa78886000000b0052e4de9b806si5229145pfe.342.2022.08.19.15.20.05; Fri, 19 Aug 2022 15:20:16 -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=X1U73b0X; 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 S239921AbiHSWRG (ORCPT + 99 others); Fri, 19 Aug 2022 18:17:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239411AbiHSWQm (ORCPT ); Fri, 19 Aug 2022 18:16:42 -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 C8B3EC0E6A for ; Fri, 19 Aug 2022 15:16:32 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-333b218f2cbso97335417b3.0 for ; Fri, 19 Aug 2022 15:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc; bh=H3YEiHHCZDHfvJiU4fCYVtnbVB8iHyjPM7ELjaj28Ew=; b=X1U73b0XniNLU7Z952Uoe4oLLlOQuH9fMoxIo3YE8wTvISBipZU3kbSsA/PpZc74b9 GKGrN3RRsS65zQ/iiGgHDkFgLoHu+HT15JxvGOx9hJ2PV56mfIi6fXTua6T4tCzBZCDs pidzBZcxXFnAUE6H041z//D5yM40NWB78f6EufBqHmtQf2Fy2jYoy7SMHxtXqD8J18Jl tglJU4xpK/iRl2mW5tY+0pgOj4nH9Bx5lesRwnijThCj0o6tZ7h84PrI8aDfHNjuuotw 33+iubcVMVmM0KnScNcfs0uK//EhpI5sVYu65TPan5KCq2k7mlKkYFPNxSojzIFEnPuE wSnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc; bh=H3YEiHHCZDHfvJiU4fCYVtnbVB8iHyjPM7ELjaj28Ew=; b=5jhCnPkl/Cj26sjVYVortIQXyFko2nAxICxVMjoJQ0FfcJynZ47pJz3HPC3+0jQhhy UMDlmhf/vk8Md1pck2CxXucVFER+NFVk/lPVU1PAE4FJomSTpn5UxJeo9kusnK9pTnhM lx7S/9lvvrk0QwbdaNrkO6uwMoHAELpPXbHRwwE5dyd0Br9I1za4F9nW+x5x/htBXs8q YBhYvYMF5xsf+oPy5lntwIsXgiPwupj3LAVYPasZdgPtz+2bkFF2JwqZUbyE0ATHaGed M2/FGAZ84HkSLSHk7CKcrIRtUvToOEjnVhBLkbsm7oQCxhjcnLzVndM3SyKo8YgCWfQa 5edg== X-Gm-Message-State: ACgBeo0IrbPPTCWwM4y6FuWGMaq2WtrUacu8/RW4wHrNL5A4C7mHCHwX V33NOzGiU7EiEUPGqDFtpjqBOEAg1gJ/qMg= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:f93e:7b61:ce3d:5b06]) (user=saravanak job=sendgmr) by 2002:a81:5744:0:b0:333:7505:5bca with SMTP id l65-20020a815744000000b0033375055bcamr9459605ywb.315.1660947391375; Fri, 19 Aug 2022 15:16:31 -0700 (PDT) Date: Fri, 19 Aug 2022 15:16:14 -0700 In-Reply-To: <20220819221616.2107893-1-saravanak@google.com> Message-Id: <20220819221616.2107893-5-saravanak@google.com> Mime-Version: 1.0 References: <20220819221616.2107893-1-saravanak@google.com> X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog Subject: [PATCH v2 4/4] Revert "iommu/of: Delete usage of driver_deferred_probe_check_state()" From: Saravana Kannan To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Joerg Roedel , Will Deacon , Robin Murphy , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Saravana Kannan Cc: Peng Fan , Luca Weiss , Doug Anderson , Colin Foster , Tony Lindgren , Alexander Stein , Naresh Kamboju , Geert Uytterhoeven , Jean-Philippe Brucker , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux.dev, netdev@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=unavailable 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 This reverts commit b09796d528bbf06e3e10a4a8f78038719da7ebc6. 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: b09796d528bb ("iommu/of: Delete usage of driver_deferred_probe_check_state()") Reported-by: Jean-Philippe Brucker 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 41f4eb005219..5696314ae69e 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 -ENODEV; + return driver_deferred_probe_check_state(dev); if (!try_module_get(ops->owner)) return -ENODEV; -- 2.37.1.595.g718a3a8f04-goog