Message ID | 1357649263-1098-3-git-send-email-hdoyu@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 01/08/2013 05:47 AM, Hiroshi Doyu wrote: > Use CLK_IGNORE_UNUSED for the Tegra 114 SoC to ensure > clk_disable_unused() is not called. Otherwise the system will die, > because the usecount of the clocks is incorrect. This patch will be > reverted once the Tegra 114 clocks are implemented. > diff --git a/arch/arm/mach-tegra/tegra30_clocks_data.c b/arch/arm/mach-tegra/tegra30_clocks_data.c Just as an FYI, I'll almost certainly apply Prashant's common clock conversion before this series, so this patch will need some rework to be applied on top of that.
diff --git a/arch/arm/mach-tegra/tegra30_clocks_data.c b/arch/arm/mach-tegra/tegra30_clocks_data.c index 6942c7a..4865ba5 100644 --- a/arch/arm/mach-tegra/tegra30_clocks_data.c +++ b/arch/arm/mach-tegra/tegra30_clocks_data.c @@ -1384,6 +1384,8 @@ static void tegra30_init_one_clock(struct clk *c) if (!clk->lookup.dev_id && !clk->lookup.con_id) clk->lookup.con_id = c->name; clk->lookup.clk = c; + if (tegra_chip_id == TEGRA114) /* FIXME: Implement T114 clocks */ + c->flags |= CLK_IGNORE_UNUSED; clkdev_add(&clk->lookup); tegra_clk_add(c); }
Use CLK_IGNORE_UNUSED for the Tegra 114 SoC to ensure clk_disable_unused() is not called. Otherwise the system will die, because the usecount of the clocks is incorrect. This patch will be reverted once the Tegra 114 clocks are implemented. Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> --- arch/arm/mach-tegra/tegra30_clocks_data.c | 2 ++ 1 file changed, 2 insertions(+)