]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mediatek: mt8173: Fix enabling of critical clocks
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 30 Jun 2015 02:58:44 +0000 (10:58 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 6 Jul 2015 22:54:13 +0000 (15:54 -0700)
commit7d6cfcad66c5cd585029e9da51a22d6d20abbbc2
tree296f06eec28ac8e4c439bd64bf1b0ea93c4cf37c
parent46315bb30d0a547bf30c02ab79d6c887841bba8b
clk: mediatek: mt8173: Fix enabling of critical clocks

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 where all parents are
registered we try each time after we've registered some clocks if
all known providers are present now and only then we enable the critical
clocks

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
[sboyd@codeaurora.org: Marked function and data __init]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mediatek/clk-mt8173.c