[PATCH v6 3/4] clk: samsung: exynos5433: Add runtime PM support
Sylwester Nawrocki
s.nawrocki at samsung.com
Mon Mar 27 08:24:49 PDT 2017
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
More information about the linux-arm-kernel
mailing list