Message ID | 20180524175024.19874-9-robh@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69E996019D for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 24 May 2018 18:04:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44BDC295C5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 24 May 2018 18:04:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3911D295D9; Thu, 24 May 2018 18:04:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AB8D9295C5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 24 May 2018 18:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=l7pL4SWehj8bV2JZOaRAitqSwoGec9DgL3pDj0u4JF4=; b=Yg8XzSd2Znz7Xn8AmVj3meLGHC b9k+bvv8p7qnmUoFJSLBX9Fuc+e+a/66bpZuBRiIIk3EkZSN7/vWDtGeu6pfqc/QRVSqlgew65o6N NLYROLBI+kujJ7T+df84jW9IeNpKTuY/glGp+ffXn3V/6GKWgQ2WlWNMmton+GNw8haTFx0qF49rt 3xFbylbAOsfOa44UME48rh0UXGaTMkVLUVoOue9sFSUPVSgf3Jx+hDLjKyFrAN7Kt8x/SidKzicjo ASoXhFmKc83nngc3fYD/SH4O5Ov0w0FRYVuzHNF8PwBEsyPaLmvEcTAtTdItr5Cpwr0YKjo6wtgNG QQFzL0AQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLub1-00064d-7m; Thu, 24 May 2018 18:04:15 +0000 Received: from mail-yb0-f193.google.com ([209.85.213.193]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLuO3-0006Mv-Aq for linux-arm-kernel@lists.infradead.org; Thu, 24 May 2018 17:51:10 +0000 Received: by mail-yb0-f193.google.com with SMTP id r13-v6so896861ybm.12 for <linux-arm-kernel@lists.infradead.org>; Thu, 24 May 2018 10:50:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BvRrGxva8JQZfW/TQXjlF4GuHF38rp1PtXOtm01GC9o=; b=pHfkZ7Zue6G10g/StAvzDrcNrwDjQc17E/Nsyp2gpBYvi7QCNlfvw5GrqZMb+bDwEy 1gSHrKq47bovBXkjTEUH+qlgf/YDFDBpb7IlE1y0FY/87KJJWvycUGbgr9x2QkaN+ddp FQ1Jy1ONt8qJfjs9lPMP4JiTBAijpAiN/fm8ZC2fKq6ToNz147+VgVj775XK1x7d0oVI ZsaZpt2m7SCG0nRL/ibf2Kvb4hTbzUT7kzfIFmKAxq4/RQD7/u6Bh1q+yARc5CLM36dr xSqMp63zHeMeKQ/9q8cLcyFIQpF2fEf6w+blb7qcIS1YGO3uSMuASKas5TFZdC28PbbV sWzQ== X-Gm-Message-State: ALKqPwdamLS/yRrMyKp4k41qCT8DF99z0mNakWePfcpKk5vj6IND2/N9 OlNMUFt1z6JRELyGkE7e3Q== X-Google-Smtp-Source: AB8JxZq9EGtRDV57p9yWBwYQ6N7XV/EKQlqmcjE0feuvafT8tZnCi9AJW4Mup/hjAQcxhxDtTuqScA== X-Received: by 2002:a25:ba08:: with SMTP id t8-v6mr4883791ybg.468.1527184248995; Thu, 24 May 2018 10:50:48 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id v73-v6sm9183814ywa.92.2018.05.24.10.50.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 10:50:48 -0700 (PDT) From: Rob Herring <robh@kernel.org> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Linus Walleij <linus.walleij@linaro.org>, Alexander Graf <agraf@suse.de>, Bjorn Andersson <bjorn.andersson@linaro.org>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Kevin Hilman <khilman@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>, Joerg Roedel <joro@8bytes.org>, Robin Murphy <robin.murphy@arm.com>, Mark Brown <broonie@kernel.org>, Frank Rowand <frowand.list@gmail.com> Subject: [PATCH v2 8/8] PM / Domains: Stop deferring probe at the end of initcall Date: Thu, 24 May 2018 12:50:24 -0500 Message-Id: <20180524175024.19874-9-robh@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524175024.19874-1-robh@kernel.org> References: <20180524175024.19874-1-robh@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180524_105051_420125_92327692 X-CRM114-Status: GOOD ( 17.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devicetree@vger.kernel.org, boot-architecture@lists.linaro.org, Len Brown <len.brown@intel.com>, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Pavel Machek <pavel@ucw.cz>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 1ea0e2502e8e..6398cf786e6a 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -2218,7 +2218,7 @@ int genpd_dev_pm_attach(struct device *dev) mutex_unlock(&gpd_list_lock); dev_dbg(dev, "%s() failed to find PM domain: %ld\n", __func__, PTR_ERR(pd)); - return -EPROBE_DEFER; + return driver_deferred_probe_check_init_done(dev, true); } dev_dbg(dev, "adding to PM domain %s\n", pd->name);
All PM domain drivers must be built-in (at least those using DT), so there is no point deferring probe after initcalls are done. Continuing to defer probe may prevent booting successfully even if managing PM domains is not required. This can happen if the user failed to enable the driver or if power-domains are added to a platform's DT, but there is not yet a driver (e.g. a new DTB with an old kernel). Call the driver core function driver_deferred_probe_check_init_done() instead of just returning -EPROBE_DEFER to stop deferring probe when initcalls are done. Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Kevin Hilman <khilman@kernel.org> Cc: Ulf Hansson <ulf.hansson@linaro.org> Cc: Pavel Machek <pavel@ucw.cz> Cc: Len Brown <len.brown@intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-pm@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> --- drivers/base/power/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)