clk: track the orphan status of clocks and their children
From: Heiko Stuebner <heiko@...> Date: Sun, 12 Apr 2015 01:12:16 +0200
Commit-Message
While children of orphan clocks are not carried in the orphan-list itself, they're nevertheless orphans in their own right as they also don't have an input-rate available. To ease tracking if a clock is an orphan or has an orphan in its parent path introduce an orphan field into struct clk and update it and the fields in child-clocks when a clock gets added or removed from the orphan-list. Suggested-by: Stephen Boyd <sboyd@...> Signed-off-by: Heiko Stuebner <heiko@...> Cc: Boris Brezillon <boris.brezillon@...> Cc: Alex Elder <elder@...> Cc: Alexandre Belloni <alexandre.belloni@...> Cc: Stephen Warren <swarren@...> Cc: Max Filippov <jcmvbkbc@...> Cc: kernel@pengutronix.de Cc: Zhangfei Gao <zhangfei.gao@...> Cc: Santosh Shilimkar <ssantosh@...> Cc: Chao Xie <chao.xie@...> Cc: Jason Cooper <jason@...> Cc: Stefan Wahren <stefan.wahren@...> Cc: Andrew Bresticker <abrestic@...> Cc: Robert Jarzmik <robert.jarzmik@...> Cc: Georgi Djakov <georgi.djakov@...> Cc: Sylwester Nawrocki <s.nawrocki@...> Cc: Geert Uytterhoeven <geert+renesas@...> Cc: Barry Song <baohua@...> Cc: Dinh Nguyen <dinguyen@...> Cc: Viresh Kumar <viresh.linux@...> Cc: Gabriel FERNANDEZ <gabriel.fernandez@...> Cc: emilio@elopez.com.ar Cc: Peter De Schrijver <pdeschrijver@...> Cc: Tero Kristo <t-kristo@...> Cc: Ulf Hansson <ulf.hansson@...> Cc: Pawel Moll <pawel.moll@...> Cc: Michal Simek <michal.simek@...>
Patch-Comment
drivers/clk/clk.c | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-)
Statistics
- 30 lines added
- 3 lines removed