clk: qcom: camcc-sm8250: Fix halt on boot by reducing driver's init level
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Wed, 18 May 2022 10:35:54 +0000 (13:35 +0300)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 26 Jun 2022 03:07:53 +0000 (22:07 -0500)
commitc4f40351901a10cd662ac2c081396d8fb04f584d
tree6e2012777e2bcd107705284ad5564c6119444ca7
parent1ecbc2b37f9c880e93e062901a107ea51d6101d1
clk: qcom: camcc-sm8250: Fix halt on boot by reducing driver's init level

Access to I/O of SM8250 camera clock controller IP depends on enabled
GCC_CAMERA_AHB_CLK clock supplied by global clock controller, the latter
one is inited on subsys level, so, to satisfy the dependency, it would
make sense to deprive the init level of camcc-sm8250 driver.

If both drivers are compiled as built-in, there is a change that a board
won't boot up due to a race, which happens on the same init level.

Fixes: 5d66ca79b58c ("clk: qcom: Add camera clock controller driver for SM8250")
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220518103554.949511-1-vladimir.zapolskiy@linaro.org
drivers/clk/qcom/camcc-sm8250.c