Thread (16 messages) 16 messages, 4 authors, 2017-05-22

[PATCH v6 3/4] clk: samsung: exynos5433: Add runtime PM support

From: s.nawrocki@samsung.com (Sylwester Nawrocki)
Date: 2017-03-27 15:24:49
Also in: linux-clk, linux-pm, linux-samsung-soc

On 03/22/2017 12:35 PM, Marek Szyprowski wrote:
+static int __init exynos5433_cmu_probe(struct platform_device *pdev)
+{
+	/*
+	 * Enable runtime pm here, so clock core with use runtime pm for all
+	 * registered clocks. Additionally we increase the runtime PM usage
+	 * count during the clock registration, to avoid the clock core from
+	 * runtime suspending the device.
+	 */
While applying I rephrased the above comment to:

/*
  * Enable runtime PM here to allow the clock core using runtime PM
  * for the registered clocks. Additionally, we increase the runtime
  * PM usage count before registering the clocks, to prevent the
  * clock core from runtime suspending the device.
  */
+	pm_runtime_get_noresume(dev);
+	pm_runtime_set_active(dev);
+	pm_runtime_enable(dev);

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