Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3435814rdb; Wed, 27 Dec 2023 07:21:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/Iu70mvExz23LTvksV5ydtuNcKnO7aCUigp68RC9YTz5R8Wz1t5PZjH0VQTA2uethMtoB X-Received: by 2002:a1c:7903:0:b0:40d:5bbf:b9 with SMTP id l3-20020a1c7903000000b0040d5bbf00b9mr724633wme.15.1703690507655; Wed, 27 Dec 2023 07:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703690507; cv=none; d=google.com; s=arc-20160816; b=hYuOZA/SBXRVEUkct8E1zPsehNN6QuKuMBIsR6+p3XC+44hFuHvK1eMUoZcdoI/LP8 eSdx2O3BiLkn/xPQuxdeNu0WRSTP+lRfs7QSu/eG+m8zsGdxL5RVP7deJNX24FWxfzIP uAdt6NkbP5x9GXwidGTAy/PMgSB2RVxVgOXyp35TszHTN5QsufwPSWL3yiFI9c7RASP/ zxi9Rfx6EhL5lGbQTiirDEE2RqPCpM+GnLG+cV8JBUXC3oet5Q6r9qti4lIICt2s/LSi B2Fo7Y+P4G4K+XbU+EuNHI4HlCe4NGoak2TQDDPb6uZZ1nkHIRo7qOSmfV9DD/NwRQfo wkdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=FCTlaMTC6ywPq5vAUIrnIqVxtGJdBQu5ZEYw3o8dV44=; fh=rMdaL+lH22/nTykxlJA6GsJmNx26V9w7e98+erIZxwg=; b=geWMs1v3VT7qyqrNjiJJsWjPEBGYG90++YkPJZCeD4JHQWJUfljXMSVNrMRTLVmnpx ojsOfQQvYEbjyhQW5j2BmukCBh3NIJBK0L+9h/qqaQbQDS8Da1tG5qZK4PbF8CgKbBi4 7wns5x0m/2P06AY56bXS6myydaf/55Kd/XpEaXDswlRD2X21jkyGMH3RDb1ogUHNT8sl ZWpfrKOY2ya1xZGUQrAfQb/b9+IYlAVaF+ImVrhNJxDWU7GZd+itsPKkdcrQr5RLS4uD hIoWlXmwGtCiDK1ij1jq0wp51HPiUd+mPJLYqx2969QZ1hpEaoILCkOWOVqL9fLWCjj7 zyyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SAvW12Uj; spf=pass (google.com: domain of linux-kernel+bounces-12082-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id yk18-20020a17090770d200b00a26ebd32b67si2824651ejb.863.2023.12.27.07.21.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 07:21:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12082-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SAvW12Uj; spf=pass (google.com: domain of linux-kernel+bounces-12082-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 63EAE1F21FDB for ; Wed, 27 Dec 2023 15:21:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06EC745967; Wed, 27 Dec 2023 15:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SAvW12Uj" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A158745956 for ; Wed, 27 Dec 2023 15:21:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-50e77a2805fso2199536e87.1 for ; Wed, 27 Dec 2023 07:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703690496; x=1704295296; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=FCTlaMTC6ywPq5vAUIrnIqVxtGJdBQu5ZEYw3o8dV44=; b=SAvW12UjadP4Jtx3TP4b4E6kR5qd039f/Rdi/ohC1L28pv38KAAxQIJpMOrdAc2zI6 guQ/Jr9OEnN8VFXxpjoth1628MdxOUv9HRCxbyNWcgkqrV/bI7bveFeZ5CXCa5A3v0JV Cte2a22EbHYWntG8Npjh+WMtDYYZoau/qGRiJNUL3OVdkN28GO/oZPdBrCz6hJsqIspW zr4PiO8vQcU9a1lWZeu46kvxGUWktojSuvDViI2tpORQN1SWDQBb0qcf6acjppvh0fkt ppSIyAbKHZ2b4o/bDcah+NIScxgLdvxmx4yRNVrYCbAOWKtrssaLlaqCs+zUiU12web3 EJuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703690496; x=1704295296; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FCTlaMTC6ywPq5vAUIrnIqVxtGJdBQu5ZEYw3o8dV44=; b=vqOf3O/vRiVKevtTdaQsoLjt522fBcA3rsn1wLl3swenGcO2c5Pjg/LH193qwg3Bii IdM+10W9ikIi6kdNCdxP3+5Z0P46WAymh09r0zc9Vr4FkyuEwcs4H/lsDWUrMBiw1D0o c/8L60MtW234svIi5bT2kN285lQZ57HZmRJf7oWQwDfMSdhOXUrcqs6VJwkQYTKU4Oc2 owYHjo5Lj21w+qshXRoJdaJRED6zg6TCey5Yb6SmN2bW2WFncwaa0uQPWbt4c7+219AY e06nQRxkcX8Ht15EZIyMmvKAy9diE3tqxNl26vUcYk/BceLUJF5ioozG7519QzOBu8uv yDgg== X-Gm-Message-State: AOJu0YwVfEGHMAmrK8byWPjaZ+UM3PSoXCRc94HujDiO+ZARHD/JDD3j f14L2G4WLjszVscwUO5WQcwkftPjBmU4Vw== X-Received: by 2002:a05:6512:3444:b0:50e:79a5:5462 with SMTP id j4-20020a056512344400b0050e79a55462mr1091958lfr.199.1703690489681; Wed, 27 Dec 2023 07:21:29 -0800 (PST) Received: from [10.167.154.1] (178235179028.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.28]) by smtp.gmail.com with ESMTPSA id i15-20020a05640200cf00b0055404e08589sm8686015edu.85.2023.12.27.07.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 07:21:29 -0800 (PST) From: Konrad Dybcio Date: Wed, 27 Dec 2023 16:21:24 +0100 Subject: [PATCH] pmdomain: core: Move the unused cleanup to a _sync initcall Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231227-topic-pmdomain_sync_cleanup-v1-1-5f36769d538b@linaro.org> X-B4-Tracking: v=1; b=H4sIAPNAjGUC/x2NQQqDMBAAvyJ7bsAkBaFfKUXWzVoX4iYkVVrEv zd4nDnMHFC5CFd4dAcU3qVK0gb21gEtqG82EhqD6523zg3mk7KQyWtIK4qO9ac0UmTULRvkwYf +br1nglaYsLKZCiotraFbjE3mwrN8r+XzdZ5/bny/9oIAAAA= To: Ulf Hansson , Kevin Hilman , "Rafael J. Wysocki" Cc: Marijn Suijten , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703690488; l=993; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=UYTPDXSMwDDqu5IXgCZ/QHkjN8Hb0RJgrRT9Yhl3fv0=; b=mGKEdP6m2Uc4DcAcbnyehLbza9hmdquGTiwedUuAj4jTyVcMOnntnhEQHlsF726/wEs7AwxHt 6e4I2PclHqMCfu1lAs+L+KiMCqnI0FqHbZrOnCpDQ9e1EktsvHlJr8W X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= The unused clock cleanup uses the _sync initcall to give all users at earlier initcalls time to probe. Do the same to avoid leaving some PDs dangling at "on" (which actually happened on qcom!). Fixes: 2fe71dcdfd10 ("PM / domains: Add late_initcall to disable unused PM domains") Signed-off-by: Konrad Dybcio --- drivers/pmdomain/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index a1f6cba3ae6c..18e232b5ed53 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -1109,7 +1109,7 @@ static int __init genpd_power_off_unused(void) return 0; } -late_initcall(genpd_power_off_unused); +late_initcall_sync(genpd_power_off_unused); #ifdef CONFIG_PM_SLEEP --- base-commit: 39676dfe52331dba909c617f213fdb21015c8d10 change-id: 20231227-topic-pmdomain_sync_cleanup-ae73d04133ec Best regards, -- Konrad Dybcio