clk: add CLK_DEFER_ORPHAN flag to prevent orphans from being used
From: Heiko Stuebner <heiko@...> Date: Thu, 2 Apr 2015 12:24:53 +0200
Commit-Message
The usage of clocks derived from an orphan can produce issues when trying to set rates etc. So ideally a clk_get to such a clock should defer till the clock hierarchy is complete. But as some arches probably rely on such clocks we can't disable them all. Therefore add a new clk flag where arches can enable this behaviour for their clocks. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
drivers/clk/clk.c | 6 ++++++ include/linux/clk-provider.h | 1 + 2 files changed, 7 insertions(+)
Statistics
- 7 lines added
- 0 lines removed