clk/qcom: bubble up qcom_gate_clk_en() errors
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 14 Mar 2025 15:31:19 +0000 (15:31 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Mon, 17 Mar 2025 15:12:15 +0000 (15:12 +0000)
commit7c5460afec3fd71c940a5e1a977655a267795f75
treec6ba720d77909de798ed9b6073d04bac2df00fd8
parent9043792109859c11d64ef4e6fe566e830406fc93
clk/qcom: bubble up qcom_gate_clk_en() errors

If we try to enable a gate clock that doesn't exist, we used to just
fail silently. This may make sense for early bringup of some core
peripherals that we know are already enabled, but it only makes
debugging missing clocks more difficult.

Bubble up errors now that qcom_gate_clk_en() can return an error code to
catch any still-missing clocks and make it easier to find missing ones
as more complicated peripherals are enabled.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250314-sc7280-more-clocks-v1-1-ead54487c38e@linaro.org
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
12 files changed:
drivers/clk/qcom/clock-apq8016.c
drivers/clk/qcom/clock-qcm2290.c
drivers/clk/qcom/clock-qcom.h
drivers/clk/qcom/clock-sa8775p.c
drivers/clk/qcom/clock-sc7280.c
drivers/clk/qcom/clock-sdm845.c
drivers/clk/qcom/clock-sm6115.c
drivers/clk/qcom/clock-sm8150.c
drivers/clk/qcom/clock-sm8250.c
drivers/clk/qcom/clock-sm8550.c
drivers/clk/qcom/clock-sm8650.c
drivers/clk/qcom/clock-x1e80100.c