[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20251127-ti-sci-jacinto-s2r-restore-irq-v2-4-a487fa3ff221@bootlin.com>
Date: Thu, 27 Nov 2025 09:38:58 +0100
From: "Thomas Richard (TI.com)" <thomas.richard@...tlin.com>
To: Nishanth Menon <nm@...com>, Tero Kristo <kristo@...nel.org>,
Santosh Shilimkar <ssantosh@...nel.org>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>
Cc: Gregory CLEMENT <gregory.clement@...tlin.com>,
richard.genoud@...tlin.com, Udit Kumar <u-kumar1@...com>,
Prasanth Mantena <p-mantena@...com>, Abhash Kumar <a-kumar2@...com>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-clk@...r.kernel.org,
"Thomas Richard (TI.com)" <thomas.richard@...tlin.com>
Subject: [PATCH RFC v2 4/4] firmware: ti_sci: restore clock context during
resume in BOARDCFG_MANAGED mode
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) <thomas.richard@...tlin.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__
#include <linux/bitmap.h>
+#include <linux/clk.h>
#include <linux/cpu.h>
#include <linux/debugfs.h>
#include <linux/export.h>
@@ -3901,6 +3902,8 @@ static int ti_sci_resume_noirq(struct device *dev)
if (ret)
return ret;
}
+
+ clk_restore_context();
}
break;
default:
--
2.51.0
Powered by blists - more mailing lists