Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp330326rwe; Thu, 25 Aug 2022 00:39:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6rAlmEu1EsyQ8ECtBkAsjyo9s6nWCMQNRwk6URmJeGfwevsmnJ88SrM/mvMHPef82HZr6h X-Received: by 2002:a17:90b:38c6:b0:1f7:35d8:26e2 with SMTP id nn6-20020a17090b38c600b001f735d826e2mr12643038pjb.168.1661413194483; Thu, 25 Aug 2022 00:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661413194; cv=none; d=google.com; s=arc-20160816; b=NM9snjdot4hvFnHOtbGtX0ZIfj0FEwCOLCLX5AaFQ5ORaTWJBhDSTyXQgx+32/SVsE vAZXwREPG6J7vJCU9dhFlvkHiEQXDc0cCVoZHt0EKAXYvvUZluahC4jy+KPq9wgR0M2p 8pl2AhO76Tr5WOPw9NZQ/BOu7d4XZTQXEjICVforR6Tv2bmTkWF0gqcgI7q1bMTNpBNU geNFC+j2fQ+jLiJ7qeIiQgOMqYbBqkgITAybzvRIS4x5nFPSlAdqak/hFuzbIgpo/C9b INdi/zv1Wog75QBK9ErL9tRhtjfyfPN6JVgsjdVC7jL3To/An9BJLNq5Gr/rq9601HbQ 5wQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :dkim-signature:message-id; bh=7HVGsQtIHMQuuFfGvahalzbs/jqaM9docSUpIMUOCHs=; b=pmLRBmEE8gq26c7kPSOoIcKGttl2d7G/PXOE0iNgT72bfT4zPAyJblL8ksf6tLwBQu RCZ6BTKIr6A7zFlsJT7/Q1R+Q9/VSY68126bQ91LzOnrJKF7tPbVSMl/mHWGhaTeRSq4 BAfPq2QT5f6QLIOiPvJCzgmX7Y8rq4BHkr9SyQsdE5Q1lbkqvS3W5UhGkwIOrBtm6z6j rOF0VSyzEHs+/DnxoELqVP/PQoJd3D6fgsRzl3NXIR0GIHQUd8eRJdUrfpHTVFNsmKU+ 8gc7papgYm/McX7eWTmdm5KcNDJal2iK/gkXvvEe4lYJ29NehPG7rvVah9o5T+VVrLrh DaSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@puri.sm header.s=comms header.b=kTNNzvR2; 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=puri.sm Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x69-20020a638648000000b0042b52ba8172si790149pgd.724.2022.08.25.00.39.42; Thu, 25 Aug 2022 00:39:54 -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=@puri.sm header.s=comms header.b=kTNNzvR2; 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=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236572AbiHYG6m (ORCPT + 99 others); Thu, 25 Aug 2022 02:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233215AbiHYG6k (ORCPT ); Thu, 25 Aug 2022 02:58:40 -0400 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32031A033A; Wed, 24 Aug 2022 23:58:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 6170AE1171; Wed, 24 Aug 2022 23:58:08 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GMMjKO_RXaO4; Wed, 24 Aug 2022 23:58:07 -0700 (PDT) Message-ID: <2c609579d9fba41a6fcbd47788ccbcf1f4fa0f2a.camel@puri.sm> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1661410687; bh=UO5XV5GOXaJUp2qheZTnBxncOA0cWICbUUFp+tuLMbo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=kTNNzvR2unUbjb/QrtWtKSeMmYzYcFAS16woPrlSBmRiA2zqPbeZXMFoteeotSVd2 ppqFKvvx7uXdbF2CSEkzcahDUHlhTWo7t+mteq1axuIzsIzgr4rFpRL/tyktQzvTfr gdCD78kRakHzVg5aTF12FitR19ugqiI6DzKrT3B4BVV/yIbKklbOW3V8EPeTtL1d6O 024kx31apwQCB3/AHVgZU7PI3qjCYI84z2hhvXGli0SKptH6FlIGVNaG6MAxzHoXvi 0mCDg9w0r4DbdJKLAqAfDQz8fIDPXFwUpcfcrlniMnbs5Dl+nspO2khLZ8kY/Vmkfm gh0HTHw33Jzxw== Subject: Re: [PATCH v2 3/4] Revert "PM: domains: Delete usage of driver_deferred_probe_check_state()" From: Martin Kepplinger To: Saravana Kannan , 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 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 Date: Thu, 25 Aug 2022 08:57:58 +0200 In-Reply-To: <20220819221616.2107893-4-saravanak@google.com> References: <20220819221616.2107893-1-saravanak@google.com> <20220819221616.2107893-4-saravanak@google.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Am Freitag, dem 19.08.2022 um 15:16 -0700 schrieb Saravana Kannan: > This reverts commit 5a46079a96451cfb15e4f5f01f73f7ba24ef851a. > > Quite a few issues have been reported [1][2][3][4][5][6] on the > original > commit. While about half of them have been fixed, I'll need to fix > the rest > before driver_deferred_probe_check_state() can be deleted. So, revert > the > deletion for now. > > [1] - > https://lore.kernel.org/all/DU0PR04MB941735271F45C716342D0410886B9@DU0PR04MB9417.eurprd04.prod.outlook.com/ > [2] - https://lore.kernel.org/all/CM6REZS9Z8AC.2KCR9N3EFLNQR@otso/ > [3] - > https://lore.kernel.org/all/CAD=FV=XYVwaXZxqUKAuM5c7NiVjFz5C6m6gAHSJ7rBXBF94_Tg@mail.gmail.com/ > [4] - https://lore.kernel.org/all/Yvpd2pwUJGp7R+YE@euler/ > [5] - > https://lore.kernel.org/lkml/20220601070707.3946847-2-saravanak@google.com/ > [6] - > https://lore.kernel.org/all/CA+G9fYt_cc5SiNv1Vbse=HYY_+uc+9OYPZuJ-x59bROSaLN6fw@mail.gmail.com/ > > Fixes: 5a46079a9645 ("PM: domains: Delete usage of > driver_deferred_probe_check_state()") > Reported-by: Peng Fan > Reported-by: Luca Weiss > Reported-by: Doug Anderson > Reported-by: Colin Foster > Reported-by: Tony Lindgren > Reported-by: Alexander Stein > Reported-by: Naresh Kamboju > Reviewed-by: Tony Lindgren > Tested-by: Tony Lindgren > Signed-off-by: Saravana Kannan > --- >  drivers/base/power/domain.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/base/power/domain.c > b/drivers/base/power/domain.c > index 5a2e0232862e..55a10e6d4e2a 100644 > --- a/drivers/base/power/domain.c > +++ b/drivers/base/power/domain.c > @@ -2733,7 +2733,7 @@ static int __genpd_dev_pm_attach(struct device > *dev, struct device *base_dev, >                 mutex_unlock(&gpd_list_lock); >                 dev_dbg(dev, "%s() failed to find PM domain: %ld\n", >                         __func__, PTR_ERR(pd)); > -               return -ENODEV; > +               return driver_deferred_probe_check_state(base_dev); >         } >   >         dev_dbg(dev, "adding to PM domain %s\n", pd->name); Fixes imx8mq where ENODEV results in: [ 1.048019] imx8m-blk-ctrl 38320000.blk-ctrl: error -ENODEV: failed to attach power domain "bus" Tested-by: Martin Kepplinger thanks for fixing this, martin