clk: imx: scu: ignore clks not owned by Cortex-A partition
authorPeng Fan <peng.fan@nxp.com>
Tue, 12 Sep 2023 09:19:04 +0000 (17:19 +0800)
committerAbel Vesa <abel.vesa@linaro.org>
Wed, 4 Oct 2023 12:44:14 +0000 (15:44 +0300)
commiteaefd1cf36a6507ff7dd2d30f68201de259eec63
tree0d98fc12f921bdd88290fb4bc91c758cae98b54d
parenta699148b8704aa11600321b9f6b6b21f09418c42
clk: imx: scu: ignore clks not owned by Cortex-A partition

Not register clks that not owned to current partition.
CPU resources are specical resources, it is assigned in ATF, not
non-secure OS, but we still need to allow cpu freq, so return
true for non-secure OS for cpu resources.

Otherwise there will be error log if the resources are owned by current
partition:
[   19.387291] cm40_i2c_div: failed to attached the power domain -2
[   19.389305] cm40_lpuart_div: failed to attached the power domain -2

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230912-imx8-clk-v1-v1-6-69a34bcfcae1@nxp.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-scu.c