From: Kathiravan Thirumoorthy <quic_kathirav@quicinc.com>
To: Gabor Juhos <j4g8y7@gmail.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
"Gokul Sriram Palanisamy" <quic_gokulsri@quicinc.com>,
Varadarajan Narayanan <quic_varada@quicinc.com>,
Sricharan Ramabadhran <quic_srichara@quicinc.com>
Cc: <linux-arm-msm@vger.kernel.org>, <linux-clk@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/3] clk: qcom: gcc-ipq5018: fix 'halt_reg' offset of 'gcc_pcie1_pipe_clk'
Date: Mon, 26 Feb 2024 15:26:34 +0530 [thread overview]
Message-ID: <8144cb83-077d-46ec-ae10-13d99fba34ae@quicinc.com> (raw)
In-Reply-To: <20240225-gcc-ipq5018-register-fixes-v1-2-3c191404d9f0@gmail.com>
On 2/25/2024 11:02 PM, Gabor Juhos wrote:
> The following table shows the values of the 'halt_reg' and the
> 'enable_reg' fields from the pcie clocks defined in the current
> driver:
>
> clock halt_reg enable_reg
>
> gcc_pcie0_ahb_clk 0x75010 0x75010
> gcc_pcie0_aux_clk 0x75014 0x75014
> gcc_pcie0_axi_m_clk 0x75008 0x75008
> gcc_pcie0_axi_s_bridge_clk 0x75048 0x75048
> gcc_pcie0_axi_s_clk 0x7500c 0x7500c
> gcc_pcie0_pipe_clk 0x75018 0x75018
>
> gcc_pcie1_ahb_clk 0x76010 0x76010
> gcc_pcie1_aux_clk 0x76014 0x76014
> gcc_pcie1_axi_m_clk 0x76008 0x76008
> gcc_pcie1_axi_s_bridge_clk 0x76048 0x76048
> gcc_pcie1_axi_s_clk 0x7600c 0x7600c
> gcc_pcie1_pipe_clk 8* 0x76018
>
> Based on the table, it is quite likely that the pcie0 and the pci1
> clocks are using the same register layout, however it seems that
> the value of the 'halt_reg' field in the 'gcc_pcie1_pipe_clk' clock
> is wrong.
>
> In the downstream driver [1], the same '0x76018' value is used for
> both the 'halt_reg' and for the 'enable_reg' fields of the
> 'gcc_pcie1_pipe_clk' clock.
>
> Update the current driver to use the same value used downstream as
> probably that is the correct value.
>
> 1. https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/blob/NHSS.QSDK.12.4.r4/drivers/clk/qcom/gcc-ipq5018.c?ref_type=heads#L2316
Reviewed-by: Kathiravan Thirumoorthy <quic_kathirav@quicinc.com>
>
> Fixes: e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver for IPQ5018")
> Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
> ---
> drivers/clk/qcom/gcc-ipq5018.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/qcom/gcc-ipq5018.c b/drivers/clk/qcom/gcc-ipq5018.c
> index cef9a1e7c9fdb..5e81cfa77293a 100644
> --- a/drivers/clk/qcom/gcc-ipq5018.c
> +++ b/drivers/clk/qcom/gcc-ipq5018.c
> @@ -2180,7 +2180,7 @@ static struct clk_branch gcc_pcie1_axi_s_clk = {
> };
>
> static struct clk_branch gcc_pcie1_pipe_clk = {
> - .halt_reg = 8,
> + .halt_reg = 0x76018,
> .halt_check = BRANCH_HALT_DELAY,
> .halt_bit = 31,
> .clkr = {
>
next prev parent reply other threads:[~2024-02-26 9:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-25 17:32 [PATCH 0/3] clk: qcom: gcc-ipq5018: fix some register offsets Gabor Juhos
2024-02-25 17:32 ` [PATCH 1/3] clk: qcom: gcc-ipq5018: fix 'enable_reg' offset of 'gcc_gmac0_sys_clk' Gabor Juhos
2024-02-25 21:00 ` Dmitry Baryshkov
2024-02-26 16:53 ` Gabor Juhos
2024-02-26 9:53 ` Kathiravan Thirumoorthy
2024-02-26 16:54 ` Gabor Juhos
2024-02-25 17:32 ` [PATCH 2/3] clk: qcom: gcc-ipq5018: fix 'halt_reg' offset of 'gcc_pcie1_pipe_clk' Gabor Juhos
2024-02-25 21:00 ` Dmitry Baryshkov
2024-02-26 9:56 ` Kathiravan Thirumoorthy [this message]
2024-02-25 17:32 ` [PATCH 3/3] clk: qcom: gcc-ipq5018: fix register offset for GCC_UBI0_AXI_ARES reset Gabor Juhos
2024-02-25 21:00 ` Dmitry Baryshkov
2024-02-26 9:59 ` Kathiravan Thirumoorthy
2024-03-04 21:28 ` [PATCH 0/3] clk: qcom: gcc-ipq5018: fix some register offsets Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8144cb83-077d-46ec-ae10-13d99fba34ae@quicinc.com \
--to=quic_kathirav@quicinc.com \
--cc=andersson@kernel.org \
--cc=j4g8y7@gmail.com \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=quic_gokulsri@quicinc.com \
--cc=quic_srichara@quicinc.com \
--cc=quic_varada@quicinc.com \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®