From nobody Fri Oct 3 00:58:09 2025 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 F3BFA326D55 for ; Tue, 9 Sep 2025 11:11:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757416302; cv=none; b=eTwzMuJUhC9RYVY9PcwCAHCExpzg0SV8p1QhlDQty2oiBHsa4v93dOjWXe8dY/W0i1ZetID6A8kQW/+aTxhejWj2dUIbSP55AioJZEIy1iAKiyBR0inXupKJVCvf4CpLAb+euV8kt5HoGfKAm1fAUnTMKOcSMg2DTtXECEnJSCI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757416302; c=relaxed/simple; bh=VvUp9qnNE7LRT6dFMEFfaf+OTUSJqg4fih88UVXdmOM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DcTMaioQNbTwZZWiZOXojeLW6YIPDXuruJDtgsyCes/ERUq1T+vocZOQID71opbcc8SHKxqeoUJw+4FFsr5PrWOX/t2KKgZVpo3Q046KRn1Bmb7RTzh9D2DqdEfU/IWtB8owPk2b7nyZzZVnQdnntAvE4VEjwLPGaz6SZqko3RI= 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=DuLQFk05; arc=none smtp.client-ip=209.85.167.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DuLQFk05" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-55f7039a9fdso5618460e87.1 for ; Tue, 09 Sep 2025 04:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1757416299; x=1758021099; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=euHGryHJ8QWDxT7cesCDLU1KtKBsI9gmyEIIx1smyRQ=; b=DuLQFk05D+BPKDPUDpp2569BQoR8/S75dTvna+F3aeNY35eq3z544ToC3I7nxQK6NR OWWlIYgJ9t8di+7aaCkfYClEh4pdqvYe6fD6zvyibNuZHyec3zN41lgNzEo7ogbFI6an ZhiBHkBFZWf8dlLeDfPey66TuwQ+Kg/r91v6olnwVJ+r+6Gez7tSOCAj11ib0XXNl8j4 DtDq3rD/0eZHPgzWOIM3SM2Gpz0SZB+2jNUkAeeb1UsrqMpT/t3IT2xnLhzLv/StZY5B Crj2iZtWaAjItfrELWHI0yPzxYxzX2MalV0gYUmbMuj5ay13M9hLidDSrJskyYaWk2ck QLtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757416299; x=1758021099; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=euHGryHJ8QWDxT7cesCDLU1KtKBsI9gmyEIIx1smyRQ=; b=u4lqrPeNlHELctDcr1xFB8nmkfClnI1redKa75NpV+n2ZzsT4Yb9H0hzx8U+dFuIyk kPoGFolsVpYvWj9b1kpYhjfKILywV2iXzUWUkg9ziSElREiwxUYBVac+YYMKmB/B4QNb KVmh7Pxt/1qu92MKcH3et/seBCzdT/BpbSUnV5BG4z7YBP2pbrt9qR4jbTf6iP7hUTx0 pZs7wKaz86z+duDLMxJ6J3qeHbfSXo2vWCU+2AGBgYTotU/DeMeypoQALH5sBrK6w0Yf gDtDJV85V2Eyat6KK7DeEgMznU0d3tLiQBYWU/7kW85OJ/f7hC8VgpJhWSuinqnNY2cP TAjg== X-Forwarded-Encrypted: i=1; AJvYcCUcBmRsvWs6BfQwRFZmiyb0YEtXtY651uSZ2MS+zLlfHoOobH2fD+6PVI9W/xLPnZaOKzQwXeiNJfzh6WI=@vger.kernel.org X-Gm-Message-State: AOJu0YxhbZhJ+b7JwZg01cu30gf4FlvYGEa/dLMU5E7HZ9uJxTv6R9qm q1jTSRT44fgydM+DAHSrWRjXaxZsf6yLhswvCLEz6NMnvjw81p0VH6JbVoayzMGZc1c= X-Gm-Gg: ASbGncvYobcq2V1AjoyULxcMiAbjBIXXLZUrDdmMtlsTrql0RHcsVyUyWh3hpr0+oWt MC9kfHkofl5RTWCpoY7oI4N68ErsZY+XJsX48hJIu0yVADLm6GPgIp4eCQdlWeIPMrgISQIiFws 9L0hPeAElZockQ6z3Np11oyfdn2PuSBfGHsQm6iw0m6vX6YViQgA48+LfWEHcPsQLkJSAzm8qMv eC36IXj7s6gQqSPFXU9XutbE7E7rkvaGYwn2p/lHpAdgzCmufdfHKyUBCgSR30rCueYHQwy+BYS veVBfe5ycA5//WtO6uIHgOJoCu849xhkJlanjpb1dguOlMuktADcsgZScPy7RASqP+nI0wuXje+ R+19TCabnnisnyok5D6mhUMDcWEn0c0BGVWYaMWy9J0xsO1kKoQ9e9EzlNxMRpoQo03w0Is6SYr UJ5aaHL1c= X-Google-Smtp-Source: AGHT+IFfaEg7KARMsiLKzyUcPFhDsGf7F+a3gcOB6C+SVsQx9Fu2a+sXO0Qgm1wWuW8uSP6aIC1C1A== X-Received: by 2002:a05:6512:108a:b0:55f:4db1:e450 with SMTP id 2adb3069b0e04-56260e3b836mr3025626e87.22.1757416299071; Tue, 09 Sep 2025 04:11:39 -0700 (PDT) Received: from uffe-tuxpro14.. (h-178-174-189-39.A498.priv.bahnhof.se. [178.174.189.39]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-568190f8040sm445440e87.148.2025.09.09.04.11.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Sep 2025 04:11:38 -0700 (PDT) From: Ulf Hansson To: Geert Uytterhoeven , Nicolas Frattaroli , Saravana Kannan , linux-pm@vger.kernel.org Cc: Stephen Boyd , "Rafael J . Wysocki" , Heiko Stuebner , Sebastian Reichel , Sebin Francis , Diederik de Haas , Bjorn Andersson , Abel Vesa , Peng Fan , Tomi Valkeinen , Johan Hovold , Maulik Shah , Michal Simek , Konrad Dybcio , Thierry Reding , Jonathan Hunter , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] pmdomain: renesas: rcar-gen4-sysc: Don't keep unused PM domains powered-on Date: Tue, 9 Sep 2025 13:11:23 +0200 Message-ID: <20250909111130.132976-5-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250909111130.132976-1-ulf.hansson@linaro.org> References: <20250909111130.132976-1-ulf.hansson@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The recent changes to genpd makes a genpd OF provider that is powered-on at initialization to stay powered-on, until the ->sync_state() callback is invoked for it. This may not happen at all, if we wait for a consumer device to be probed, leading to wasting energy. There are ways to enforce the ->sync_state() callback to be invoked, through sysfs or via the probe-defer-timeout, but none of them in its current form are a good fit for rcar-gen4-sysc PM domains. Let's therefore opt-out from this behaviour of genpd for now, by using the GENPD_FLAG_NO_STAY_ON. Link: https://lore.kernel.org/all/20250701114733.636510-1-ulf.hansson@linar= o.org/ Reported-by: Geert Uytterhoeven Fixes: 0e789b491ba0 ("pmdomain: core: Leave powered-on genpds on until sync= _state") Fixes: 13a4b7fb6260 ("pmdomain: core: Leave powered-on genpds on until late= _initcall_sync") Signed-off-by: Ulf Hansson Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- drivers/pmdomain/renesas/rcar-gen4-sysc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pmdomain/renesas/rcar-gen4-sysc.c b/drivers/pmdomain/r= enesas/rcar-gen4-sysc.c index 5aa7fa1df8fe..7434bf42d215 100644 --- a/drivers/pmdomain/renesas/rcar-gen4-sysc.c +++ b/drivers/pmdomain/renesas/rcar-gen4-sysc.c @@ -251,6 +251,7 @@ static int __init rcar_gen4_sysc_pd_setup(struct rcar_g= en4_sysc_pd *pd) genpd->detach_dev =3D cpg_mssr_detach_dev; } =20 + genpd->flags |=3D GENPD_FLAG_NO_STAY_ON; genpd->power_off =3D rcar_gen4_sysc_pd_power_off; genpd->power_on =3D rcar_gen4_sysc_pd_power_on; =20 --=20 2.43.0