]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: clk-composite-93: check slice busy
authorPeng Fan <peng.fan@nxp.com>
Tue, 30 Aug 2022 03:31:32 +0000 (11:31 +0800)
committerAbel Vesa <abel.vesa@linaro.org>
Mon, 19 Sep 2022 10:06:45 +0000 (13:06 +0300)
commitf1f70244f99a154a65a7e7797e0a949cc0591e24
tree78548dbc68c00732f2e4fd9b8858891a78ccc3e8
parent10e8ea9ede1651e8b2d938de33c63fba89c401ea
clk: imx: clk-composite-93: check slice busy

i.MX93 CCM ROOT STAT register has a SLICE_BUSY bit:
indication for clock generation logic is applying new setting.
0b - Clock generation logic is not busy.
1b - Clock generation logic is applying new setting.

So when set parent/rate/gate, need check this bit.

Introduce specific ops to do the work.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20220830033137.4149542-4-peng.fan@oss.nxp.com
drivers/clk/imx/clk-composite-93.c