From: Jingyi Wang <quic_jingyw@quicinc.com>
To: Krzysztof Kozlowski <krzk@kernel.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>,
<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/4] soc: qcom: llcc: add errata to get bank num
Date: Tue, 3 Sep 2024 15:28:53 +0800 [thread overview]
Message-ID: <cb68781f-7127-47fb-88b2-a99766e16cd6@quicinc.com> (raw)
In-Reply-To: <6c846a47-8192-4c6c-927b-8969485d49aa@kernel.org>
On 9/3/2024 3:19 PM, Krzysztof Kozlowski wrote:
> On 03/09/2024 09:17, Jingyi Wang wrote:
>>
>>
>> On 9/3/2024 3:13 PM, Krzysztof Kozlowski wrote:
>>> On Tue, Sep 03, 2024 at 02:21:31PM +0800, Jingyi Wang wrote:
>>>> Use "num-banks" property to indicate the actual num of banks for
>>>> errata.
>>>>
>>>> Signed-off-by: Jingyi Wang <quic_jingyw@quicinc.com>
>>>> ---
>>>> drivers/soc/qcom/llcc-qcom.c | 15 ++++++++++-----
>>>> 1 file changed, 10 insertions(+), 5 deletions(-)
>>>>
>>>> diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c
>>>> index 8fa4ffd3a9b5..3fb45e625d82 100644
>>>> --- a/drivers/soc/qcom/llcc-qcom.c
>>>> +++ b/drivers/soc/qcom/llcc-qcom.c
>>>> @@ -1275,12 +1275,17 @@ static int qcom_llcc_probe(struct platform_device *pdev)
>>>> goto err;
>>>> cfg = &cfgs->llcc_config[cfg_index];
>>>>
>>>> - ret = regmap_read(regmap, cfg->reg_offset[LLCC_COMMON_STATUS0], &num_banks);
>>>> - if (ret)
>>>> - goto err;
>>>> + if (unlikely(!of_property_read_u32(dev->of_node, "num-banks", &num_banks))) {
>>>
>>> Drop unlikely.
>>>
>>>> + /* errata: get num of llcc banks. */
>>>
>>> Huh? What?
>>>
>>>> + } else {
>>>> + ret = regmap_read(regmap, cfg->reg_offset[LLCC_COMMON_STATUS0], &num_banks);
>>>> + if (ret)
>>>> + goto err;
>>>
>>> Sorry, but what? You can read it from hardware, but you add DT property?
>>> No, that's just wrong. Why commit msg explains nothing about reasons and
>>> problem you are solving?
>>>
>> we need the property because there is hardware errata on this SoC, regmap_read get wrong num.
>
> That's what compatible is for.
>
> Anyway, you did not explain the problem but just send some code. All
> your patches in this and all future submissions must explain why you are
> doing this. What you are fixing, why you are introducing something.
>
Sure, thanks for remind.
> Best regards,
> Krzysztof
>
Thanks,
Jingyi
next prev parent reply other threads:[~2024-09-03 7:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 6:21 [PATCH 0/4] soc: qcom: llcc: Add llcc support for the QCS8300 platform Jingyi Wang
2024-09-03 6:21 ` [PATCH 1/4] dt-bindings: cache: qcom,llcc: add num-banks property Jingyi Wang
2024-09-03 7:10 ` Krzysztof Kozlowski
2024-09-03 7:30 ` Jingyi Wang
2024-09-03 8:00 ` Krzysztof Kozlowski
2024-09-03 8:38 ` Jingyi Wang
2024-09-03 8:56 ` Krzysztof Kozlowski
2024-09-03 6:21 ` [PATCH 2/4] dt-bindings: cache: qcom,llcc: Document the QCS8300 LLCC Jingyi Wang
2024-09-03 7:11 ` Krzysztof Kozlowski
2024-09-03 6:21 ` [PATCH 3/4] soc: qcom: llcc: add errata to get bank num Jingyi Wang
2024-09-03 7:13 ` Krzysztof Kozlowski
2024-09-03 7:17 ` Jingyi Wang
2024-09-03 7:19 ` Krzysztof Kozlowski
2024-09-03 7:28 ` Jingyi Wang [this message]
2024-09-05 13:29 ` Konrad Dybcio
2024-09-06 5:43 ` Jingyi Wang
2024-09-03 6:21 ` [PATCH 4/4] soc: qcom: llcc: Add llcc configuration support for the QCS8300 platform Jingyi Wang
2024-09-03 7:14 ` Krzysztof Kozlowski
2024-09-03 7:18 ` Jingyi Wang
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=cb68781f-7127-47fb-88b2-a99766e16cd6@quicinc.com \
--to=quic_jingyw@quicinc.com \
--cc=andersson@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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®