Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1274379lfc; Wed, 1 Jun 2022 13:51:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSmO2QZggY7gLvuykRFaUcHuvQShgxbmEnhYv6T6n1yTs8tYavH64taO1gHTXHGl4syVd0 X-Received: by 2002:a17:902:ce8a:b0:161:8622:891e with SMTP id f10-20020a170902ce8a00b001618622891emr1237085plg.41.1654116705588; Wed, 01 Jun 2022 13:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654116705; cv=none; d=google.com; s=arc-20160816; b=r3f3FV9PpIRTLQBXTHMq4Dhdv90D2haznYwJGDvEefAZQaegLq2jSUY4u6wKvfKvJV 0s88FBvsYVDbHS9uMYyLHwHz8eekd7zGW0kNPeCVddGQKz0RipNM9vJv4dNfwbWhIMZe fPnzVAmsmc3iXnRmt7pBOJdUOdZqmfRAIpuri93okTV3UMNfBHNAeLpYV5BL21e9/6In +O8KIbSUJBhui0NXwQqUsuV1qdpEHtPmlAqrr9m8I8TPJ9GIy7jXCHg3kAFMfEosgDyb dR8P4/zyYc4T1wlt202pWL01mGkCTs4SQgycZvSugMzghSG7QBM175XBcWZzzaGiOVvj +VMw== 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=Eq6nH6aGeuKpMU9nM7ibONmheABIDjQM7t9UjsNcl+w=; b=J/2IOAWZaY2DwqQ27PGRDXdNVbuU4G5GViUKChz+p66at0++XnPDui9+wunkvHFfwC WkgJ2eYOqbNgIDrQx3y9c/bzmTBRjnJR+EoruW1ylbdtIRX7UzWLPL9cBqEjlBq+U/R4 K1SiOjWqm4drTbObPdN/UsYCZ9Te1p1wahCcA0YpJOp8OLVmW7TIsV8gl82a7Ufz0cqp 52x28QHaBy7rU79bjaNOhvd7CDFbyVdCu59oWZrre+R6XlJPq7DcrTZxXRt5YbuVU4XY 6gFbEVxlFdCZs8XtyQqQZk+pSXT/UnJRmLTlWysb4pemuwKhbYZ6mX29Kgg09ovBCwUZ 3hyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=dvfs6aw0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mi16-20020a17090b4b5000b001d9654a4447si3742540pjb.132.2022.06.01.13.51.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:51:45 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=dvfs6aw0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F7BD20FC6E; Wed, 1 Jun 2022 12:55:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244719AbiFAHHS (ORCPT + 99 others); Wed, 1 Jun 2022 03:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245271AbiFAHHQ (ORCPT ); Wed, 1 Jun 2022 03:07:16 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A34F8CB0A for ; Wed, 1 Jun 2022 00:07:15 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id m11-20020a25710b000000b0065d4a4abca1so704629ybc.18 for ; Wed, 01 Jun 2022 00:07:15 -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=Eq6nH6aGeuKpMU9nM7ibONmheABIDjQM7t9UjsNcl+w=; b=dvfs6aw0o9enYr6q5JvsoITL1cIodQJtPwQKFVNV/ElWQiITwvlgBGIYVXYubJ0EWb hQZknjUn8hWhfVG63Q26ahXT/ybuECTh3IQ0hlFzpMrRfffJaSxehOVATgqcGdOl5B63 UAGusDHfZ1+bZx3UPXTCMA74yfTvat1qBDbQNIwN2gBcEL0s2lgJJxBkvLKW4seHwHfy yy/kVDyKrdiePicpV782RiPioPYMYI6dNrIPSqSRQjnVUQlBHfFoZNPq2vXgAhQA5tJ2 qPRfgtRDz89n2glwq1xvIPHXD3I9kan+rQBxaKWDF0fkq11SsjvYI3DlubXtUCtJ5N2t udoA== 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=Eq6nH6aGeuKpMU9nM7ibONmheABIDjQM7t9UjsNcl+w=; b=siR9eRR32Shhk829YZJ3mRot/33T6Q6UT00QCJkxF+KP+T2+bFR0iQwFGLkwYi06RC OkISGwhPFCXFZmI6WcJ1X4nmBZ6K2oYVeEuKi8BdYdBZP8d2KNvrv+VOWqr9MhxnoSrf SWNfCwfgzF3XPuWUdRokVrAECIR+HI3SBqGRLWCFJSb3Mn1m3c0MB+dZvUCEMqc2A53O Y+M2uw7q+IuBym2w5atM3+aA+PIfp0tC+YaPJkUYi7NGddIQWf3ua7BEhIm28kxdiqvj 8EGhkVEwn/grFeqpN0STd0S7KRXmpV+rVB4yN8iA8UTh1sb07oT8gQaXhN5lj/+lmWBg iqFw== X-Gm-Message-State: AOAM530evs18nWUoiz+Ft6OReQkPPp7w0t/sgqs0NZ/9bW+zUFSn8jMX ccKZ+PjDBuLKQmiGSj/IWBv8SWlpJg6RHsA= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:f3aa:cafe:c20a:e136]) (user=saravanak job=sendgmr) by 2002:a25:2e06:0:b0:65c:ed2e:31bd with SMTP id u6-20020a252e06000000b0065ced2e31bdmr13135711ybu.244.1654067234572; Wed, 01 Jun 2022 00:07:14 -0700 (PDT) Date: Wed, 1 Jun 2022 00:06:57 -0700 In-Reply-To: <20220601070707.3946847-1-saravanak@google.com> Message-Id: <20220601070707.3946847-2-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 1/9] PM: domains: 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.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 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. 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