From: Martin Blumenstingl Date: Wed, 24 May 2017 09:39:31 +0000 (+0200) Subject: clk: meson: meson8b: mark clk81 as critical X-Git-Tag: v4.13-rc1~117^2~48^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=be58e496698dbd757bc4abe4173168cb2e6cb299;p=karo-tx-linux.git clk: meson: meson8b: mark clk81 as critical Disabling clk81 results in an immediate freeze of the whole system. This can happen "accidentally" when the last child-clock of clk81 is disabled (in this case the common clock framework also disables clk81, even if it was only enabled indirectly before). Signed-off-by: Martin Blumenstingl Signed-off-by: Jerome Brunet Acked-by: Neil Armstrong Signed-off-by: Neil Armstrong --- diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index e9985503165c..9d1aaf6e9ac6 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -399,7 +399,7 @@ struct clk_gate meson8b_clk81 = { .ops = &clk_gate_ops, .parent_names = (const char *[]){ "mpeg_clk_div" }, .num_parents = 1, - .flags = (CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED), + .flags = (CLK_SET_RATE_PARENT | CLK_IS_CRITICAL), }, };