[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231002170021.192740-1-trabarni@gmail.com>
Date: Mon, 2 Oct 2023 19:00:21 +0200
From: Barnabás Czémán <trabarni@...il.com>
To: Bjorn Andersson <andersson@...nel.org>,
Andy Gross <agross@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, linux-arm-msm@...r.kernel.org,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Barnabás Czémán <trabarni@...il.com>
Subject: [PATCH] clk: qcom: gcc-msm8953: fix stuck gcc_usb30_master_clk
According to downstream dwc3-msm source this clock has FSM dependency on
gcc_pcnoc_usb30_clk so enabling it would fail if latter isn't enabled.
This patch add works around this issue by changing parent of
gcc_usb30_master_clk to gcc_pcnoc_usb30_clk. This is acceptable because
both clocks have same parent and are branches/gates.
Signed-off-by: Barnabás Czémán <trabarni@...il.com>
---
drivers/clk/qcom/gcc-msm8953.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/qcom/gcc-msm8953.c b/drivers/clk/qcom/gcc-msm8953.c
index 3e5a8cb14d4d..20639340e8a6 100644
--- a/drivers/clk/qcom/gcc-msm8953.c
+++ b/drivers/clk/qcom/gcc-msm8953.c
@@ -3645,7 +3645,7 @@ static struct clk_branch gcc_usb30_master_clk = {
.hw.init = &(struct clk_init_data) {
.name = "gcc_usb30_master_clk",
.parent_hws = (const struct clk_hw*[]){
- &usb30_master_clk_src.clkr.hw,
+ &gcc_pcnoc_usb3_axi_clk.clkr.hw,
},
.num_parents = 1,
.ops = &clk_branch2_ops,
--
2.42.0
Powered by blists - more mailing lists