]> 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)
commita8edeff409601424499c6de17e3abecee99eb6f9
tree296f06eec28ac8e4c439bd64bf1b0ea93c4cf37c
parent6f97da049b0e5b639953812ca80a50771edf7036
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