Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3573698iog; Tue, 21 Jun 2022 01:17:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vVDp+qJEIe8L0vEK+0EnHnDvVQT5/MOo/1avKh/LHPr9X7Siz/ydTvkkjXXkxDtMVeC30G X-Received: by 2002:a05:6a00:198c:b0:51c:7547:58e0 with SMTP id d12-20020a056a00198c00b0051c754758e0mr28349707pfl.82.1655799476802; Tue, 21 Jun 2022 01:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655799476; cv=none; d=google.com; s=arc-20160816; b=xaTF24J+3Aeb1snJnGLXLJIpWAQkgxf6I5/sK1Pc7MJToIKOub7P1yYaxZcchWgWBv ljkTGCnUFV+fL3C4RweYsJ/XxiJ7D4ZS3OCUNA4lTQFqkIWzEQlTcWnuGJ3+7WHt0f26 9s33vjlH1j5eYy8F3n0NNY+9pHObCbJGcaQg0uFlS0KIVgBCLUwD3OLfe3kR5QNUwguD 4go9vuhXv5O0mScO5iYhZpZy75JhpLne97JB+ISGaPcwuX1H/InV59Xm5Az0G42azQe5 MjfLmmSA818HO4hq1nyUmW7+Oa4sH+ewQf3cCAUep4UjG0QnI73jON5oUVdCap+w3YFG mkLA== 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; bh=znqahPi4JZBTLP/U8QNMdiSoBnrm7WBm9nJy9NAdofs=; b=T8nBglskBRteuD2hQ6hEaI6Awvv0t3lONcUuYUEbdqRf0tLGJwdQvUFsSsnomVsZ8e GdvGlfWJ/jCPuYrzdJJd2pAns0dcYXNistGLi+rX7ukKvDWUF+OofQ72vJepvquS4lWj nH0cQ9uKw0pSfRxHvGVKPjp1BN0WjoWIayqwt0PeXTYWpcAaQ35FId0i85jCUTPl3eOt Rzeg+7aCbQmJqo5Dd8JtAH7QYUzaknASnK2ZU+o++/ifwKseVo5gjmpcwFFeqwLlQjiF 2RTg4GdbLSh2i5zViDfET35oTRkZZS+ECYKBr4ITXcgXk/5PRbD+/CPVmSvnSkpRCujK 1p+w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020a630a42000000b0040c99b681a4si10707378pgk.23.2022.06.21.01.17.44; Tue, 21 Jun 2022 01:17:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347709AbiFUH3h (ORCPT + 99 others); Tue, 21 Jun 2022 03:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347706AbiFUH2u (ORCPT ); Tue, 21 Jun 2022 03:28:50 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1D1CCE22; Tue, 21 Jun 2022 00:28:45 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id EC05F809F; Tue, 21 Jun 2022 07:23:46 +0000 (UTC) Date: Tue, 21 Jun 2022 10:28:43 +0300 From: Tony Lindgren To: Saravana Kannan Cc: 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 , 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, Geert Uytterhoeven Subject: Re: [PATCH v2 1/9] PM: domains: Delete usage of driver_deferred_probe_check_state() Message-ID: References: <20220601070707.3946847-1-saravanak@google.com> <20220601070707.3946847-2-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220601070707.3946847-2-saravanak@google.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 Hi, * Saravana Kannan [700101 02:00]: > Now that fw_devlink=on by default and fw_devlink supports > "power-domains" property, 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. Looks like this causes omaps to not boot in Linux next. With this simple-pm-bus fails to probe initially as the power-domain is not yet available. On platform_probe() genpd_get_from_provider() returns -ENOENT. Seems like other stuff is potentially broken too, any ideas on how to fix this? Regards, Tony > > 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 739e52cd4aba..3e86772d5fac 100644 > --- a/drivers/base/power/domain.c > +++ b/drivers/base/power/domain.c > @@ -2730,7 +2730,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 driver_deferred_probe_check_state(base_dev); > + return -ENODEV; > } > > dev_dbg(dev, "adding to PM domain %s\n", pd->name); > -- > 2.36.1.255.ge46751e96f-goog >