Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp441602rdb; Mon, 22 Jan 2024 08:49:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOWhtaX2/Xt4xcK5nVsl1p/QiFIks5MFsbLJDIcar33UW3yolZ6WXthDd8AN0VtYCxkZG+ X-Received: by 2002:a05:622a:164e:b0:42a:231d:80d8 with SMTP id y14-20020a05622a164e00b0042a231d80d8mr7382865qtj.130.1705942186939; Mon, 22 Jan 2024 08:49:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705942186; cv=pass; d=google.com; s=arc-20160816; b=ApH5fn9t3NtH1YrsHT7S5hhg2jLBNxA3v2JwfwQO8s1gMMQfoAXyrKnpQ/fRSUIZKB 0Asmfl/uAtpR/8Wvv53Fd7ApgJ84/NEVvjfi0nSjwoa+UtbChKtVzlX8nHXrCig/QTqC LZWrw/saWOhMUjw5avU02NRcyCg3OporoGjkjEFZGy7ScNmVLzAufAeQHcDhCyz7TDO3 BJ5h4HzYbOzv2xLOmUuqgMYSuuwwarNaEIoRKSQWDCKBfOUrAu+MWe9p5UFG74je04rZ t0TdGzazmInu+uPsgBX0DUMjiW91MhA0sCR59TPeodjRlny5zCVREP+61GZwyT7MGPmw iLMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=xhBZ9e9dLCiSrnfGs3nmyAjRoc3LyZMuLRLZxqI/JA4=; fh=drfMkdE84g7UkJaGIVusquC/l3eOFVsrVv6USzpxp44=; b=wwzYFql1ACtJoCCEvehvlr2P48VvAvcScNFMXIBbuOp6iP29ruKO1G81xcWK52OaEY GCOn94itMh1+nDg2J9z5ZOljAeLTpBJ39Y0Mm6Cvl/jGLzDhdxeWu8r4cpfeEnI1QkBa khFB6jNCkDDP4L4Um4wKaSiR9lK8vstn2FNgzBgrJr/TZWkghT5zBoOr7sWbpwjlvlot iwKSsbggJxJvy+e52985aAY69OSLCTES/HRsSB7L3yhuc905ui2xo3sCKjRUMOARSsaY ED1wAPpuvuNVA/MUReohSyuHppH3g1/Lt2xyxKbI6mcaGWXyS21827rw6PsusJ7pfFA6 wHDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S1dXNhgZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-33579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u17-20020a05622a199100b0042a33bdf0b0si4809309qtc.328.2024.01.22.08.49.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 08:49:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S1dXNhgZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-33579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33579-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8025D1C25470 for ; Mon, 22 Jan 2024 16:49:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EACA5A11C; Mon, 22 Jan 2024 15:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="S1dXNhgZ" Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 F0A3B5A11B for ; Mon, 22 Jan 2024 15:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705936944; cv=none; b=ncObULj717M5pgR03s0hjniQMfvNQmi2jg4JRLg+2xQmxcuUQSu3aLg8sR78NvYwu4hirX142SkUlXEKo3lnf3ltqPo9bxGudBTTZYdt4DDBA/hUonHG2r6nZIBDlcmU6kdx5j5StBPwZsd4+3BxQy7xRTb2gtw89+izz/Ib+D8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705936944; c=relaxed/simple; bh=kPHw7M7MZ9eEaPEcUx+Jg7AAgahwXs0PTULrhciRfAs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ELCWwPNcMuyUnnlQiBXinxeXVq3mb/pbeOXGDvL71FNrFfAPOBvd5FiuwcswW90OhISMZrXS9lNlvkzLK/8wN0xOOm5lFGF42J5VVRT/ttKm4i8DwNBA1oSKe6OU76x7oeNICBoqGwwPEDxezc9mhSy6Bcdu0xBZRfxqTtuRfOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=S1dXNhgZ; arc=none smtp.client-ip=209.85.128.171 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-yw1-f171.google.com with SMTP id 00721157ae682-5ff9adbf216so26285137b3.1 for ; Mon, 22 Jan 2024 07:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705936942; x=1706541742; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xhBZ9e9dLCiSrnfGs3nmyAjRoc3LyZMuLRLZxqI/JA4=; b=S1dXNhgZI6vB5ZNDtnkwBge5HyKwHTwWvYfpq6G+u6hIbMxrOYi1dKWaWqOeW0Vszg QgkuyW69ZV9UPdFRR9lSB/ip7909R2JFhdEbbMAdf/Qcvk2LY06cpGRvLLIKHPkU0+r9 CXvJPPWTLv0F4EZGg7TM3ExoT2h6qgw91Mxy7bxS40mT4S0njNteHUg8NSIzg/QF5Y/9 ui4SPDmCRKcEpm9MnapOK8B9ZANe5N5CdVTR4TFkFcBzGhHpaA9kueMM6fUrN1TGA4E3 TU3++YgsnSpUu7JRLg3uDabLWCGjtx5tmvoJrTqBGgIwgmEeiZ0mj/8fCR2i1gwrJsEa p07Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705936942; x=1706541742; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xhBZ9e9dLCiSrnfGs3nmyAjRoc3LyZMuLRLZxqI/JA4=; b=mUAXr42sU1SuT6aWi0VHQusvWdYrG1U1l4UwHLko3fPZrWnSSZSzjOt1KhxcEArivz wLtvv0M8QmI4DupfZd9m5oq295/zD6S1nT8wrFE6qbek+TcZi5h/qv8z5rtTlDsYLpxl l1MArxSqfnCoQ0+khMdNvQC1YVt0pE+EFo8HFftgTNUGP8+E02YlHcOqDPYSzcafMS2j GaVbekWg/GwAfzg49dh/gytUGw69fTxizyXyZ6IoGe12IyPchx/2sacakUPCw9oUUAXj XgLGqFxEUfZiwPyZnSgr0g/E80uGhjUwDCPrO+NNJ5Tyk8z5GD2CEukP4q/luyHf941h mXcg== X-Gm-Message-State: AOJu0Yxr30R5DCL7WHoxERpnToRrzJf5uiFCnSL1skYr3okvZUT4t+5O BOwxhp3iQRomsgfW87hlxrNSkLOOrihSoaIwrz6JDw8sgUfnM0K5EWtE+Gyg+1BNaCR/ZKqeByI 1FAOGJU66jrS/y3+mEdWwz+sZJ6/nBz5IJ6xtMQ== X-Received: by 2002:a0d:d906:0:b0:5ff:8117:4e7e with SMTP id b6-20020a0dd906000000b005ff81174e7emr4242032ywe.70.1705936941994; Mon, 22 Jan 2024 07:22:21 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231227-topic-pmdomain_sync_cleanup-v1-1-5f36769d538b@linaro.org> In-Reply-To: <20231227-topic-pmdomain_sync_cleanup-v1-1-5f36769d538b@linaro.org> From: Ulf Hansson Date: Mon, 22 Jan 2024 16:21:46 +0100 Message-ID: Subject: Re: [PATCH] pmdomain: core: Move the unused cleanup to a _sync initcall To: Konrad Dybcio Cc: Kevin Hilman , "Rafael J. Wysocki" , Marijn Suijten , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson Content-Type: text/plain; charset="UTF-8" On Wed, 27 Dec 2023 at 16:21, Konrad Dybcio wrote: > > 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 Applied for fixes and by adding a stable tag, thanks! Kind regards Uffe > --- > 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 >