From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Taniya Das <quic_tdas@quicinc.com>,
Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
quic_jkona@quicinc.com, quic_imrashai@quicinc.com,
devicetree@vger.kernel.org
Subject: Re: [PATCH 2/4] clk: qcom: lpassaudiocc-sc7280: Add support for LPASS resets for QCM6490
Date: Tue, 18 Jun 2024 15:22:44 +0200 [thread overview]
Message-ID: <b72b1965-b93f-4b71-9783-f201a17c7e36@linaro.org> (raw)
In-Reply-To: <2800ce74-44ea-444b-b00f-e07bbfdd4415@quicinc.com>
On 6/10/24 12:19, Taniya Das wrote:
>
>
> On 6/7/2024 3:00 PM, Konrad Dybcio wrote:
>> On 31.05.2024 12:22 PM, Taniya Das wrote:
>>> On the QCM6490 boards the LPASS firmware controls the complete clock
>>> controller functionalities. But the LPASS resets are required to be
>>> controlled from the high level OS. The Audio SW driver should be able to
>>> assert/deassert the audio resets as required. Thus in clock driver add
>>> support for the same.
>>>
>>> Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
>>> ---
>>
>> Please stop ignoring my comments without responding.
>>
>> https://lore.kernel.org/all/c1d07eff-4832-47d9-8598-aa6709b465ff@linaro.org/
>>
>
> Sorry about that, it was not intentional. I had posted the v2 and decided to split as it was delaying the other changes in the older series which had more functional fixes.
>
>
> Picking your comments from the old series.
>
> ---------------------------------
> > - clk_zonda_pll_configure(&lpass_audio_cc_pll, regmap, &lpass_audio_cc_pll_config);
> > + if (!of_property_read_bool(pdev->dev.of_node, "qcom,adsp-skip-pll")) {
>
> Big no-no.
> --------------------------------
>
> Yes, I have already moved away from it and introduced a new probe to support the subset of functionality on QCM6490.
>
>
> ------------------------
> > + /* PLL settings */
> > + regmap_write(regmap, 0x4, 0x3b);
> > + regmap_write(regmap, 0x8, 0xff05);
>
> Model these properly and use the abstracted clock (re)configuration functions.
> Add the unreachable clocks to `protected-clocks = <>` and make sure that the
> aforementioned configure calls check if the PLL was really registered.
> ---------------------------
>
> These were made for alignment of code, but existing approach was not touched.
That's not purely cosmetic, this now falls into the compatible-specific
if-condition, which was my issue.
>
> ---------------------
>
> > + lpass_audio_cc_sc7280_regmap_config.name = "lpassaudio_cc_reset";
>
> Ugh.. are these really not contiguous, or were the register ranges misrepresented from
> the start?
>
> > + lpass_audio_cc_sc7280_regmap_config.max_register = 0xc8;
>
> Provide the real size of the block in .max_register instead, unconditionally
> -----------------
>
> This had a little history behind this approach. During the driver development the ask was to avoid duplicating same descriptors and update runtime what is possible. That is the reason to update it runtime. The max register size is 0xC8 for resets functionality usage for High level OS.
What I mean is that, the register region size is constant for a given piece of
hardware. Whether Linux can safely access it or not, doesn't matter. The
regmap_size value can just reflect the width of the region (and so should the
device tree).
Konrad
next prev parent reply other threads:[~2024-06-18 13:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-31 10:22 [PATCH 0/4] Update LPASS Audio clock driver for QCM6490 board Taniya Das
2024-05-31 10:22 ` [PATCH 1/4] dt-bindings: clock: qcom: Add compatible for QCM6490 boards Taniya Das
2024-05-31 10:22 ` [PATCH 2/4] clk: qcom: lpassaudiocc-sc7280: Add support for LPASS resets for QCM6490 Taniya Das
2024-05-31 16:26 ` Krzysztof Kozlowski
2024-06-10 10:03 ` Taniya Das
2024-06-16 7:49 ` Krzysztof Kozlowski
2024-08-16 8:34 ` Taniya Das
2024-06-07 9:30 ` Konrad Dybcio
2024-06-07 9:34 ` Krzysztof Kozlowski
2024-06-07 10:07 ` Dmitry Baryshkov
2024-06-10 10:20 ` Taniya Das
2024-06-10 10:24 ` Taniya Das
2024-06-10 10:19 ` Taniya Das
2024-06-10 18:19 ` Dmitry Baryshkov
2024-06-18 13:22 ` Konrad Dybcio [this message]
2024-08-16 8:34 ` Taniya Das
2024-05-31 10:22 ` [PATCH 3/4] arm64: dts: qcom: qcm6490-idp: Update protected clocks list Taniya Das
2024-05-31 12:04 ` Dmitry Baryshkov
2024-06-10 10:27 ` Taniya Das
2024-06-10 18:21 ` Dmitry Baryshkov
2024-08-16 8:34 ` Taniya Das
2024-08-16 13:03 ` Dmitry Baryshkov
2024-05-31 10:22 ` [PATCH 4/4] arm64: dts: qcom: qcs6490-rb3gen2: Update the LPASS audio node Taniya Das
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=b72b1965-b93f-4b71-9783-f201a17c7e36@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=quic_imrashai@quicinc.com \
--cc=quic_jkona@quicinc.com \
--cc=quic_tdas@quicinc.com \
--cc=robh+dt@kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).