firmware: qcom_scm: Always try to consume all three clocks
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Sat, 24 Jun 2023 12:23:45 +0000 (14:23 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 24 Jul 2023 02:35:01 +0000 (19:35 -0700)
commit5130464a14d382c30662faf090fd2be11558183a
tree662817574497931d62c47ef9ae52dcef1754863f
parent7dc3ea5ea8e8df2a82a1e78bef2382fb2c982ed3
firmware: qcom_scm: Always try to consume all three clocks

The code for handling more than 1 clock is a bit messy and requires
one to add new, SoC-specific compatibles if one wants to attach a clock.

Switch devm_clk_get to devm_clk_get_optional to prevent throwing it
from throwing errors when the clock is absent and defer checking the
clock requirements to dt schema.

This lets us get rid of compatibles that aren't necessary for backwards
compatibility *and* will hopefully prevent the addition of meaningless
new compatibles.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230623-topic-scm_cleanup-v2-1-9db8c583138d@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/firmware/qcom_scm.c