Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3279505rwa; Tue, 23 Aug 2022 01:52:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uHMO0YW/+5y5f2FT3BRApr3yTrEuogGJ7CztnDoTlVl6tGWbmBGWU35xhM+D8mcA17raS X-Received: by 2002:a17:907:8a22:b0:73d:8a12:2d1c with SMTP id sc34-20020a1709078a2200b0073d8a122d1cmr4395415ejc.154.1661244769531; Tue, 23 Aug 2022 01:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661244769; cv=none; d=google.com; s=arc-20160816; b=fXBA1iybDtHGldgWx7M8adQZ4l7CV1aFIuzBFJXfECC9DQqJCY0W10hhaKUdA4fgBH eU7gxXbVChSY4DZkMBTM4SpywgDBdAzGQUwWH4NvgRbkUAcqfl+vGLaj+SC/nwXRK/2G ElDq0Z0O7gThVz46r8Gedfb/Kp+K1kjCBj3dbeSIp1vuaIpYCIhhPLRs5UDwmoWU+p77 +s/Yw1Qw1Ir5fmbc9UCDqejo2hwtRYvB/i6lyFXX1bWDbvpDap7P1dW0NdekVoPB6n14 Yn6kM+Za5SNshQ++LTQGr0KPLRbthtjFE3CWIE+qI+WAv6Kt9pRX5wmYlt/9N9tz9Q/a AjwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lowUk3ZQ/xSgBaE2xTjhRmXYuzGUjE58IGnczwDkSxE=; b=SozUHb1RslqiTc6dFni0ADBvLp6vS8GTRf8aaaVG72/cnOWAi9a7ljGcvnyLytKSb5 MkUKLZRyIWZpmwOKnYE1hnvhf8o2utn2uPJJRRDKWNRyTHUaX+//1IYc9bLV5ZrOXbdk WuvQHwh6H0I2K/Wh3WSP0TssLEG1fsgrA/hMcc27Vo+iCBl+ugD7gMy2Vl13C44J4yEE 4zCiYohh5a4sLsDv3AhWjV7pqNgy2JDlgUlmMdsRWlNp0TWnYx6DFxmQv2reucjn+wfT MkS8M/YgFTKxeDXAwn4Jt35nWHz19Q7BBXVUfx8KtNuL1HT7vinsojGbMxQhVaZ2pP6I WhwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nDj/GuXI"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020a056402521000b0043dcf90c94asi1881130edd.67.2022.08.23.01.52.23; Tue, 23 Aug 2022 01:52:49 -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=@kernel.org header.s=k20201202 header.b="nDj/GuXI"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238873AbiHWIYG (ORCPT + 99 others); Tue, 23 Aug 2022 04:24:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242560AbiHWIRz (ORCPT ); Tue, 23 Aug 2022 04:17:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC1B655C; Tue, 23 Aug 2022 01:11:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7FBF36129B; Tue, 23 Aug 2022 08:11:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B1C7C433C1; Tue, 23 Aug 2022 08:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661242301; bh=ZMn1wFd6P28w1tT+WxK1KNO2SOwhs16BL7x3iFsoQk0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nDj/GuXIV02S+bEtqiVRh31cKYd2KRgbJqbI2xHK6Fro22GKICkJQdRCI8GZU5Yfx +rmwVh+EtTHjIwfJusfxk7xNyZuPuL6MsqLrGEJdEp1S8/w8vCwIa9qOTvH+2Rtrxu 1D43pHTzhqyy5+yIGJ90kDGPDg7xi5rdCMfKF+ofRaOdkVnWY1+nRM9SXUa60GWU92 btNflJCasnz8Qle5FBlqRVobbWdlpcxaisk/zTZJ/FkllgpaKdiMBNFf9Gudrbp8Gx 2KO5FbQwF9aPGpJx1j+EUBRmne2pJ1HPPFOmdRa2MPZLFZSv78iKk5vkdHlT3AbzvH b50Q+R7MKCj/A== Date: Tue, 23 Aug 2022 09:11:32 +0100 From: Jean-Philippe Brucker To: Saravana Kannan Cc: 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 , Peng Fan , Luca Weiss , Doug Anderson , Colin Foster , Tony Lindgren , Alexander Stein , Naresh Kamboju , Geert Uytterhoeven , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux.dev, netdev@vger.kernel.org Subject: Re: [PATCH v2 4/4] Revert "iommu/of: Delete usage of driver_deferred_probe_check_state()" Message-ID: References: <20220819221616.2107893-1-saravanak@google.com> <20220819221616.2107893-5-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220819221616.2107893-5-saravanak@google.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri, Aug 19, 2022 at 03:16:14PM -0700, Saravana Kannan wrote: > 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/ https://lore.kernel.org/lkml/Yv+dpeIPvde7oDHi@myrica/ > > Fixes: b09796d528bb ("iommu/of: Delete usage of driver_deferred_probe_check_state()") > Reported-by: Jean-Philippe Brucker > Signed-off-by: Saravana Kannan Tested-by: Jean-Philippe Brucker > --- > 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 >