diff mbox series

[2/2] clk: qcom: camcc-x1e80100: Fix missing DT_IFACE enum in x1e80100 camcc

Message ID 20240302-linux-next-24-03-01-simple-clock-fixes-v1-2-25f348a5982b@linaro.org (mailing list archive)
State Accepted
Commit 9dd7b0d351f0c6af9b69d969919a2a8b04bbfd6e
Headers show
Series clk: Fix a core error path and missing qcom camcc-x1e80100 enum | expand

Commit Message

Bryan O'Donoghue March 2, 2024, 12:52 a.m. UTC
The desired DT pattern for clock indexing is the following:

clocks = <&gcc GCC_CAMERA_AHB_CLK>,
         <&bi_tcxo_div2>,
         <&bi_tcxo_ao_div2>,
         <&sleep_clk>;

In order to facilitate that indexing structure we need to have DT_IFACE
enum defined.

Fixes: 76126a5129b5 ("clk: qcom: Add camcc clock driver for x1e80100")
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 drivers/clk/qcom/camcc-x1e80100.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Konrad Dybcio March 2, 2024, 1:48 a.m. UTC | #1
On 2.03.2024 01:52, Bryan O'Donoghue wrote:
> The desired DT pattern for clock indexing is the following:
> 
> clocks = <&gcc GCC_CAMERA_AHB_CLK>,
>          <&bi_tcxo_div2>,
>          <&bi_tcxo_ao_div2>,
>          <&sleep_clk>;
> 
> In order to facilitate that indexing structure we need to have DT_IFACE
> enum defined.
> 
> Fixes: 76126a5129b5 ("clk: qcom: Add camcc clock driver for x1e80100")
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
diff mbox series

Patch

diff --git a/drivers/clk/qcom/camcc-x1e80100.c b/drivers/clk/qcom/camcc-x1e80100.c
index f7f3d92c263d..46bb225906bf 100644
--- a/drivers/clk/qcom/camcc-x1e80100.c
+++ b/drivers/clk/qcom/camcc-x1e80100.c
@@ -21,6 +21,7 @@ 
 #include "reset.h"
 
 enum {
+	DT_IFACE,
 	DT_BI_TCXO,
 	DT_BI_TCXO_AO,
 	DT_SLEEP_CLK,