Re: [PATCH 2/5] clk: mediatek: mt8173: Fix enabling of critical clocks

2015-05-26 Thread Sascha Hauer
On Thu, May 21, 2015 at 03:12:53PM +0800, James Liao wrote: From: Sascha Hauer s.ha...@pengutronix.de On the MT8173 the clocks are provided by different units. To enable the critical clocks we must be sure that all parent clocks are already registered, otherwise the parents of the critical

Re: [PATCH 2/5] clk: mediatek: mt8173: Fix enabling of critical clocks

2015-05-26 Thread James Liao
On Tue, 2015-05-26 at 09:46 +0200, Sascha Hauer wrote: +static struct clk_onecell_data *mt8173_top_clk_data; +static struct clk_onecell_data *mt8173_pll_clk_data; + +static void mtk_clk_enable_critical(void) +{ + if (!mt8173_top_clk_data || !mt8173_pll_clk_data) + return;

[PATCH 2/5] clk: mediatek: mt8173: Fix enabling of critical clocks

2015-05-21 Thread James Liao
From: Sascha Hauer s.ha...@pengutronix.de On the MT8173 the clocks are provided by different units. To enable the critical clocks we must be sure that all parent clocks are already registered, otherwise the parents of the critical clocks end up being unused and get disabled later. To find a place