Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2250793rwa; Mon, 22 Aug 2022 04:59:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR6mxVrOIzljzhwZTp3ZQVP+yMTwVOTk5BE5ZivW/RNnLxjv3tYUAP6+4Z3HUvm6W4wAmr+S X-Received: by 2002:a17:906:8476:b0:73d:8892:8887 with SMTP id hx22-20020a170906847600b0073d88928887mr1527140ejc.153.1661169555515; Mon, 22 Aug 2022 04:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661169555; cv=none; d=google.com; s=arc-20160816; b=QnQylNTsZ0202H300ELcTFFhXPHBxhuX5mU/ylTbFI7b9fcuKvym3ROPYvQabbDXNR EhDjK4f27ueKZqbrSbkj9oUFy/7fcr6uDhhzzNe5GNHp5FG80jXamW7IDgv2F/BJoQLN DPjVQvGc99NpIiVnN5MsvWbZx0hUaSEUba4SOmuIJCuJRBWhxQlx4hxTsF85UW2/t+O9 gy/LB58W9/HHa89qwYvhoYMQ/w5BdnYKLtCpEaz0SjVqMM68deTRoG24n4VRqCkm3DWq HipfiiocqPcozVFE3imCOmC9GfR5otxq5nHRComt0KJfbV1aI4SedKR9Cx/ZgVX7sX1a 7UmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+w8P0+jPioBvyQX26soRJFaC6+SGfdkq8j/+0JNC+e0=; b=bKFo2YbUrjl8pjJEP5P275PU7bM1uaqmg41FgjQPdRF3pMI/Y3zNkXDpasxHCXyq3w BOfbG1KOEPz/nSfA56+p9UlZmLcxCAm3w1hFHtIuFSdzN3WxmUhGXymsS5blUedt9+QQ +q7l4DtvDTk9KGi64gJEqQJSdHpwOA+5NN1fBV/qPpZFsItfn58ftdFkiLGCo690X6Ic r8E2WShrUaMzyFI3F9cOFH+LZoFoxWV20Fpr/ObHeMVCr98ysfiDjzPAdZTggajDxjp7 A2G2tAqfxGmF7/R6As0ZCfe8AtwsKIAbpO+36G3xHFQerchmnjcCW78lNsG4L4JE+gNV y+KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AER/8rUk"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb9-20020a1709076d8900b00734be0ce0dfsi9399002ejc.575.2022.08.22.04.58.50; Mon, 22 Aug 2022 04:59:15 -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=@linaro.org header.s=google header.b="AER/8rUk"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234234AbiHVLzY (ORCPT + 99 others); Mon, 22 Aug 2022 07:55:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234192AbiHVLzV (ORCPT ); Mon, 22 Aug 2022 07:55:21 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 601981408A for ; Mon, 22 Aug 2022 04:55:19 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id s6so3660495lfo.11 for ; Mon, 22 Aug 2022 04:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=+w8P0+jPioBvyQX26soRJFaC6+SGfdkq8j/+0JNC+e0=; b=AER/8rUkasnKGFksiHBr/K+aXL2clTOJNVuXg6OcUviHt2NDnY58m+ZqACS4ee9TRx qEtl1ldAOea6CByntkGtXvhggmwgKKAWTAt7CeL9daZlpMX3n4WGfal3KgCXlRc0yXvu 3Ta9JCf3HOEFHhuwWQtHGEUfVTv0XXbFLGy5xhLzWgPps+pk69tl5cCpHYp+z8rLxTXO mIb19Eg7N/Hx0A5uFABlQGgAeDfbWfyEHbZhO8CTQ6e9kObzERAOTyl5IhrGCzp7F/X5 6h7hUI9KtbUylHPJTxXY4ZG83ZhjjMAPw65m12NqeQhTQazdE/X7qf5gFyu64h6FWq6R GpTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=+w8P0+jPioBvyQX26soRJFaC6+SGfdkq8j/+0JNC+e0=; b=IrM9vG3huZPEqZBIx+nvpJK9t12ckNUNYCn74sfXr5Pwum8iDJ9gwmm3WoAXaEK6IK VtyPUF9SBwfj/+9u4528ae7CcWLen1O5PpRNuu720C1hUx8fdhn1HBbOt3U9x+evwvi3 55RfxHY2+GsukVau8tIzbYLzWk37ANRRhgg/U3qbRYz3J41hR5TQXHyR5IHSwssq84/K lxS/Qh8bcCAaxgAffhYsPugcLxDEdRHjAuCRIYTEHtlv0CqvmdR6S/PQPRk0k26jivfy qLuEnomvxHv7UXCGO5tk0Ug0vE6tZj/imErgwYJTsp9vjRHwUVIeOC0RBd60XTSfZk40 69TQ== X-Gm-Message-State: ACgBeo34uVG+66xmYmDDjfLtsX30rXl2o5c1R4NqA0KvR+tN/vY5Lh8A 6UWkpNPle0M20vFXggHPsklssLOCukVIagFZuUYPUA== X-Received: by 2002:a05:6512:239f:b0:491:cd95:f67d with SMTP id c31-20020a056512239f00b00491cd95f67dmr6606005lfv.184.1661169317655; Mon, 22 Aug 2022 04:55:17 -0700 (PDT) MIME-Version: 1.0 References: <20220819221616.2107893-1-saravanak@google.com> <20220819221616.2107893-4-saravanak@google.com> In-Reply-To: <20220819221616.2107893-4-saravanak@google.com> From: Ulf Hansson Date: Mon, 22 Aug 2022 13:54:41 +0200 Message-ID: Subject: Re: [PATCH v2 3/4] Revert "PM: domains: Delete usage of driver_deferred_probe_check_state()" To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , 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 , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Sat, 20 Aug 2022 at 00:16, Saravana Kannan wrote: > > 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 Acked-by: Ulf Hansson Kind regards Uffe > --- > 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); > -- > 2.37.1.595.g718a3a8f04-goog >