From: Jingyi Wang <quic_jingyw@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Conor Dooley <conor@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, <quic_tengfan@quicinc.com>,
<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <quic_tingweiz@quicinc.com>,
<quic_aiquny@quicinc.com>
Subject: Re: [PATCH v2 2/3] soc: qcom: llcc: Add LLCC configuration for the QCS8300 platform
Date: Mon, 28 Oct 2024 10:22:47 +0800 [thread overview]
Message-ID: <b914945e-4de2-436e-afdf-3c3ce07f4073@quicinc.com> (raw)
In-Reply-To: <v73v4qniygxvqgdjcuydgpir2fgxmnltqaxcexoktzesnqfxod@55k43u2gmqqt>
On 10/20/2024 12:29 AM, Dmitry Baryshkov wrote:
> On Thu, Oct 10, 2024 at 06:08:47PM +0800, Jingyi Wang wrote:
>> Add LLCC configuration for the QCS8300 platform. There is an errata on
>> LB_CNT information on QCS8300 platform, override the value to get the
>> right number of banks.
>>
>> Signed-off-by: Jingyi Wang <quic_jingyw@quicinc.com>
>> ---
>> drivers/soc/qcom/llcc-qcom.c | 72 ++++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 72 insertions(+)
>>
>> @@ -3391,6 +3456,12 @@ static int qcom_llcc_probe(struct platform_device *pdev)
>> num_banks >>= LLCC_LB_CNT_SHIFT;
>> drv_data->num_banks = num_banks;
>>
>> + /* LB_CNT information is wrong on QCS8300, override the value */
>> + if (of_device_is_compatible(dev->of_node, "qcom,qcs8300-llcc")) {
>> + num_banks = 4;
>> + drv_data->num_banks = 4;
>> + }
>
> Nit: I think it might be better to skip reading LLCC_COMMON_STATUS0
> register completely and just set num_banks instead. See [1]
>
> [1] https://lore.kernel.org/linux-arm-msm/20241019-sar2130p-llcc-v1-2-4e09063d04f2@linaro.org/
>
Just went through the series and the follow up sereies, I think it is a good idea to
add the property in the config. Thanks!
>> +
>> drv_data->regmaps = devm_kcalloc(dev, num_banks, sizeof(*drv_data->regmaps), GFP_KERNEL);
>> if (!drv_data->regmaps) {
>> ret = -ENOMEM;
>> @@ -3484,6 +3555,7 @@ static int qcom_llcc_probe(struct platform_device *pdev)
>> }
>>
>> static const struct of_device_id qcom_llcc_of_match[] = {
>> + { .compatible = "qcom,qcs8300-llcc", .data = &qcs8300_cfgs},
>> { .compatible = "qcom,qdu1000-llcc", .data = &qdu1000_cfgs},
>> { .compatible = "qcom,sa8775p-llcc", .data = &sa8775p_cfgs },
>> { .compatible = "qcom,sc7180-llcc", .data = &sc7180_cfgs },
>>
>> --
>> 2.25.1
>>
>
Thanks,
Jingyi
next prev parent reply other threads:[~2024-10-28 2:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 10:08 [PATCH v2 0/3] soc: qcom: llcc: Add LLCC support " Jingyi Wang
2024-10-10 10:08 ` [PATCH v2 1/3] dt-bindings: cache: qcom,llcc: Document the QCS8300 LLCC Jingyi Wang
2024-10-10 10:08 ` [PATCH v2 2/3] soc: qcom: llcc: Add LLCC configuration for the QCS8300 platform Jingyi Wang
2024-10-19 16:29 ` Dmitry Baryshkov
2024-10-28 2:22 ` Jingyi Wang [this message]
2024-10-25 17:41 ` Konrad Dybcio
2024-10-28 2:24 ` Jingyi Wang
2024-10-10 10:08 ` [PATCH v2 3/3] arm64: dts: qcom: qcs8300: Add LLCC support for QCS8300 Jingyi Wang
2024-10-25 17:57 ` Konrad Dybcio
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=b914945e-4de2-436e-afdf-3c3ce07f4073@quicinc.com \
--to=quic_jingyw@quicinc.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_aiquny@quicinc.com \
--cc=quic_tengfan@quicinc.com \
--cc=quic_tingweiz@quicinc.com \
--cc=robh@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®