]> git.baikalelectronics.ru Git - kernel.git/commit
clk: core: Honor CLK_OPS_PARENT_ENABLE for clk gate ops
authorChen-Yu Tsai <wenst@chromium.org>
Mon, 22 Aug 2022 08:14:23 +0000 (16:14 +0800)
committerStephen Boyd <sboyd@kernel.org>
Mon, 22 Aug 2022 23:17:46 +0000 (16:17 -0700)
commitdbc65a8804a11363a79600e7c33425a1f22c92f6
tree59be6f26d9543d32e51d430615541436279e97a8
parent946f9fc6aa4d61893bc38dec96dc01982e5c3ee4
clk: core: Honor CLK_OPS_PARENT_ENABLE for clk gate ops

In the previous commits that added CLK_OPS_PARENT_ENABLE, support for
this flag was only added to rate change operations (rate setting and
reparent) and disabling unused subtree. It was not added to the
clock gate related operations. Any hardware driver that needs it for
these operations will either see bogus results, or worse, hang.

This has been seen on MT8192 and MT8195, where the imp_ii2_* clk
drivers set this, but dumping debugfs clk_summary would cause it
to hang.

Fixes: 7743310b682d ("clk: core: support clocks which requires parents enable (part 2)")
Fixes: 6f67c1ebbbe7 ("clk: core: support clocks which requires parents enable (part 1)")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220822081424.1310926-2-wenst@chromium.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c