Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp517394imn; Wed, 27 Jul 2022 12:22:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t6QpMOY2mPjdHaz7kJIdCdAEcs4ZIEMkv+vdBZvC7IfmOPSkS0ckCEa8JBSkA0uAF0Dmwf X-Received: by 2002:a05:6402:4381:b0:43b:cb55:ae3c with SMTP id o1-20020a056402438100b0043bcb55ae3cmr23929101edc.45.1658949777590; Wed, 27 Jul 2022 12:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658949777; cv=none; d=google.com; s=arc-20160816; b=PWd4G4KQtnzPsGhunlSUykzjHsoT/eH7d6WadIdJhjV0HkMk3Hs2d6gEb1RVSNL1PV aSfqseFsjxMA8qgT5BvUgxhEEQu633qMMzIIMVyl/veEboporWzvXooBX1nftiDSkwsy RgcBjk2qv6/7Ms5QxriHIdV2f+Hte5phQDobnUT/vJe9D3amScIQvT7qor3Tr3obPDyI hixulFRq0okIzl2btvrH4knacv7T/HWLZp9Nt/TvPZQ/gDm7+ZmfGB7ZH3SZ5DWGGNOV NxB7QQw6+HNvJu4id5NM+K8UtX+27YDRabjAmosQxTv1lnVtXoA1n4KsN0fywyyP/A/2 tNIQ== 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=BEk69dNG70BOHgb0SXLFWzzFpDyu+7tq1YolDhZdyzE=; b=b9uhTcHFfl6+FlL4KPXWWOry/MpdkaBltxJLRzTCZ6xgoA7hWZ/iEF1FNsUhRFX2Ca dUnkBEm1Q1E935DH7YfMpJ9lLWtfr93AJM9PCqX4p9+SMMqcrt0G8fd3LkZ7Sx4iVAva ckFd2BsqZD84Jyl81+Nfh13O5mqGsg83MOoTxlmP+GywbbXqliD+9uOjziN6FQzRUl2Q ByTOwUCqFiclCg2JK3frOPBq8u1UpDtCvhmMz4lqacm2wxR9GL7oVCQ+BI44cTrLA941 RuiH9DRxvqLlT9IjwXEXuHgDoPQseVdbXMVjxpTm5nA/XaXGmIhaOgfz8Lf9DIe5jFnH jxFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="B7uDYX/C"; 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 he30-20020a1709073d9e00b0072b6ef5fff3si19684177ejc.605.2022.07.27.12.22.24; Wed, 27 Jul 2022 12:22:57 -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="B7uDYX/C"; 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 S236381AbiG0TKD (ORCPT + 99 others); Wed, 27 Jul 2022 15:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236903AbiG0TJS (ORCPT ); Wed, 27 Jul 2022 15:09:18 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 259B27170E for ; Wed, 27 Jul 2022 11:50:27 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-31f3959ba41so59519377b3.2 for ; Wed, 27 Jul 2022 11:50:27 -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=BEk69dNG70BOHgb0SXLFWzzFpDyu+7tq1YolDhZdyzE=; b=B7uDYX/Cr97zFSRCvB7/fn1gKg5skiOo3orS627VXpMcYo8QEZ7oIrvYBjLdXKLvyw oxhx2F1iCRsyE1gIZ2hQTPsAZ46+3sYZ0ox/pMmaN1heCLPhTeZtrSP1HwOFBi+LY5w+ O36Puictr1H9b2lkfo4jRR0Mo/xQr3nN7QsINYg+iKLGVrHaFtsRNdO2iKXWdHOJB+yI aOHHjRJdiN1hTtvuovOpKu1BWxPbokvLEXrXizIHGlzJb61Z0JET3FdTJLeRJ+YjUkgx ZtsTrJIP/RTGLKgls6kpdVgkFafVspj0h5Ad++NOeAflXkUYcUYlzfpi2vBLdxNvt1Jf 7KOQ== 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=BEk69dNG70BOHgb0SXLFWzzFpDyu+7tq1YolDhZdyzE=; b=8JyMS7qvD5gY2Nho2LMFXlwsCS3U0YrtP0Rvs6DHj1x91O4KnW7xsa9sI936VbU/Ah 8+FkZmO6ero9stH845F1lOnZNQ2wa4mwW1XteYYRFQbolOA44AuHi3JhuvHb72bCecCu rJY5nIr1/Ls2K6wkMJgOl+yU0x5qgxzdRr+K3i/syKqouoTW4C0jTcHWv3ete0OLqnYT PH5yjhij/RdAvzKd+9+VySbvFweC0rRcEBF6G+hTpx1JR3KzS/b+4oAoVy7kCJRx5EMJ CoozcznS7qudbT75O9N/MA1Oprqa0826vRCNFIhQXHW2i2+n8+h/3IoZaGfvxRdaj+Se Y3+g== X-Gm-Message-State: AJIora+DDUqZ4XY9NS09dvOWL3Jb1Dy8tTI/tU3IOcNThWDUya8HHzDs zOYLIJv9fHwbG7g60gWIypOIPBqF9DK4mWU= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:40ee:bae0:a4fd:c75b]) (user=saravanak job=sendgmr) by 2002:a5b:502:0:b0:66e:206d:15f6 with SMTP id o2-20020a5b0502000000b0066e206d15f6mr18796823ybp.160.1658947826888; Wed, 27 Jul 2022 11:50:26 -0700 (PDT) Date: Wed, 27 Jul 2022 11:50:11 -0700 In-Reply-To: <20220727185012.3255200-1-saravanak@google.com> Message-Id: <20220727185012.3255200-4-saravanak@google.com> Mime-Version: 1.0 References: <20220727185012.3255200-1-saravanak@google.com> X-Mailer: git-send-email 2.37.1.359.gd136c6c3e2-goog Subject: [PATCH v1 3/3] Revert "PM: domains: 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 , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Saravana Kannan , naresh.kamboju@linaro.org, kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, 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,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 5a46079a96451cfb15e4f5f01f73f7ba24ef851a. There are a few more issues to fix that have been reported in the thread for the original series [1]. We'll need to fix those before this will work. So, revert it for now. [1] - https://lore.kernel.org/lkml/20220601070707.3946847-1-saravanak@google.com/ 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 3e86772d5fac..739e52cd4aba 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 -ENODEV; + return driver_deferred_probe_check_state(base_dev); } dev_dbg(dev, "adding to PM domain %s\n", pd->name); -- 2.37.1.359.gd136c6c3e2-goog