From nobody Mon Dec 1 22:36:50 2025 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CD3C31D39F for ; Thu, 27 Nov 2025 08:39:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764232764; cv=none; b=Brf+vurtkx/etQpXIP4QB0w/hOD/FPMd5eR9LFQh7vysu6o0kwTIwWTyrmQbgua1bKoVghtVwaZGbJG9Fyw8dM1dPD0QecLvGE0qmTKnMbeIPUOoG3g67h4IHA0oDB0ibgkCgqeZnRCd6bdZZBkRwte2b4Of0njn2+/sHKiYWtY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764232764; c=relaxed/simple; bh=XvO8WdPb9Dh+HMrGLdgEGRGU/kywwObZJsmvRiDTIsc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZeRpuRoOSdXlrCUUQhOZTRzm+Ar3FEQh5j0ByARbFbMjO+UJwSj7IaNtCsSvKktqOaEMo4Ksvjfm5jpgTJpnR4UcQlJY6CzfycpIPuOthYKEMOP711oHuiDtQCU9y8IRNgOorM+b1BgB5Spo22naJgj//9aaPPROt61GIz+n29k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=n1lK/gI/; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="n1lK/gI/" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 120E9C16A1A; Thu, 27 Nov 2025 08:38:57 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D9FF36068C; Thu, 27 Nov 2025 08:39:19 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B470F102F1A6A; Thu, 27 Nov 2025 09:39:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1764232759; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=uGUB311hgWAyFRUuNDLWLmnmEe9k7c0Q1RMUsTuYHcw=; b=n1lK/gI/ZWefv9D3rq/z16Z4OmDsaSOdN7WJxw+1To5hlI0jyfodUScvXR5zIV+LyMbcsA hIKf555N5KfxeazGBpzXws0TIc5AQoZONVoQcXdv1pLG0wGVy8O3/OYeoH0ZNLQpJNo3va OSzx6W1og/5lfvKN+7rRNGYYLg/t4zHjPcxCKxRk8oq+AWksVIpPsBg4K07VFvAe0A/vG6 4OXtn+A5WD8nrA+XIbMWlahn3Lkia0nVTwr8603QIuflhYCnDLKFpEyex0Nm4S2E7vDBjq Zvx7hWpzV/93lQNClNb3LYY+LB9IjLfRtGarsgS7bN8bulnan7CWO3u/Bid4pA== From: "Thomas Richard (TI.com)" Date: Thu, 27 Nov 2025 09:38:58 +0100 Subject: [PATCH RFC v2 4/4] firmware: ti_sci: restore clock context during resume in BOARDCFG_MANAGED mode 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: quoted-printable Message-Id: <20251127-ti-sci-jacinto-s2r-restore-irq-v2-4-a487fa3ff221@bootlin.com> References: <20251127-ti-sci-jacinto-s2r-restore-irq-v2-0-a487fa3ff221@bootlin.com> In-Reply-To: <20251127-ti-sci-jacinto-s2r-restore-irq-v2-0-a487fa3ff221@bootlin.com> To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Michael Turquette , Stephen Boyd Cc: Gregory CLEMENT , richard.genoud@bootlin.com, Udit Kumar , Prasanth Mantena , Abhash Kumar , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, "Thomas Richard (TI.com)" X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 In BOARDCFG_MANAGED mode, the firmware cannot restore the clock parents. This responsibility is therefore delegated to the ti_sci driver, which uses clk_restore_context() to trigger the context_restore() operation for all registered clocks, including those managed by the sci-clk driver. The sci-clk driver implements the context_restore() operation to ensure clock parents are correctly restored. Signed-off-by: Thomas Richard (TI.com) --- drivers/firmware/ti_sci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index a4d28f37b58ae..1e3fe00ff9109 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -9,6 +9,7 @@ #define pr_fmt(fmt) "%s: " fmt, __func__ =20 #include +#include #include #include #include @@ -3901,6 +3902,8 @@ static int ti_sci_resume_noirq(struct device *dev) if (ret) return ret; } + + clk_restore_context(); } break; default: --=20 2.51.0