Thread (30 messages) 30 messages, 4 authors, 2013-07-31
STALE4707d

[PATCH 08/11] clk: tegra114: add suspend/resume function for tegar_cpu_car_ops

From: Joseph Lo <hidden>
Date: 2013-06-27 10:12:36
Also in: linux-tegra

On Thu, 2013-06-27 at 03:38 +0800, Stephen Warren wrote:
On 06/25/2013 03:27 AM, Joseph Lo wrote:
quoted
Adding suspend/resume function for tegra_cpu_car_ops. We only save and
restore the setting of the clock of CoreSight. Other clocks still need
to be taken care by clock driver.
Mike, can I get an ack to take this through the Tegra tree with the rest
of this series, for 3.12. Thanks.

(Nit: There's a typo in the patch subject here too.)
quoted
diff --git a/drivers/clk/tegra/clk-tegra114.c b/drivers/clk/tegra/clk-tegra114.c
quoted
+#ifdef CONFIG_PM_SLEEP
+static void tegra114_cpu_clock_suspend(void)
+{
+	/* switch coresite to clk_m, save off original source */
+	tegra114_cpu_clk_sctx.clk_csite_src =
+				readl(clk_base + CLK_SOURCE_CSITE);
+	writel(3<<30, clk_base + CLK_SOURCE_CSITE);
Don't you need spaces around the << to satisfy checkpatch/coding style?
It didn't cause a warning by checkpatch. But I will fix it in next
version.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help