From: "Barnabás Czémán" <barnabas.czeman@mainlining.org>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Stephan Gerhold <stephan@gerhold.net>,
Ulf Hansson <ulfh@kernel.org>, Abel Vesa <abelvesa@kernel.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
linux-remoteproc@vger.kernel.org
Subject: Re: [PATCH v3 3/7] pmdomain: qcom: rpmpd: Split SDM632 pm domains from MSM8953
Date: Tue, 06 Oct 2026 20:21:15 +0200 [thread overview]
Message-ID: <d514f6ad8c8d56dfb395f92ac100623b@mainlining.org> (raw)
In-Reply-To: <i4zm6zil2qyfdrclkxf6sifgup4phi6dlggspxrd7khlvbqv4e@yxotc3cslqss>
On 2026-10-05 09:04, Dmitry Baryshkov wrote:
> On Fri, Oct 02, 2026 at 12:38:31AM +0200, Barnabás Czémán wrote:
>> Remove modem related pm domains from MSM8953 rpmpd because MSM8953 MSS
>> is using mss-supply as regulator.
>> Split SDM632 rpmpd from MSM8953 because SDM632 MSS is using mss-supply
>> as pm domain.
>>
>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> ---
>> drivers/pmdomain/qcom/rpmpd.c | 29 ++++++++++++++++-------------
>> 1 file changed, 16 insertions(+), 13 deletions(-)
>>
>> diff --git a/drivers/pmdomain/qcom/rpmpd.c
>> b/drivers/pmdomain/qcom/rpmpd.c
>> index 5f55fc791131..c37a79d6bc43 100644
>> --- a/drivers/pmdomain/qcom/rpmpd.c
>> +++ b/drivers/pmdomain/qcom/rpmpd.c
>> @@ -503,19 +503,8 @@ static struct rpmpd md_s1a_corner_ao = {
>> .key = KEY_CORNER,
>> };
>>
>> -static struct rpmpd md_s1a_lvl_ao;
>
> I'd rather see #define RPMPD_VDDMD_AO unless you have a good reason to
> drop it.
There is no AO defined here:
https://git.codelinaro.org/clo/la/kernel/msm-4.9/-/blob/LA.UM.10.6.2.c26-01500-89xx.0/arch/arm64/boot/dts/qcom/msm8953-regulator.dtsi#L19
https://git.codelinaro.org/clo/la/kernel/msm-4.9/-/blob/LA.UM.10.6.2.c26-01500-89xx.0/arch/arm64/boot/dts/qcom/sdm439-regulator.dtsi#L19
>
>> static struct rpmpd md_s1a_lvl = {
>> .pd = { .name = "md", },
>> - .peer = &md_s1a_lvl_ao,
>> - .res_type = RPMPD_SMPA,
>> - .res_id = 1,
>> - .key = KEY_LEVEL,
>> -};
>> -
>> -static struct rpmpd md_s1a_lvl_ao = {
>> - .pd = { .name = "md_ao", },
>> - .peer = &md_s1a_lvl,
>> - .active_only = true,
>> .res_type = RPMPD_SMPA,
>> .res_id = 1,
>> .key = KEY_LEVEL,
>> @@ -703,8 +692,6 @@ static const struct rpmpd_desc msm8917_desc = {
>> };
>>
>> static struct rpmpd *msm8953_rpmpds[] = {
>> - [MSM8953_VDDMD] = &md_s1a_lvl,
>> - [MSM8953_VDDMD_AO] = &md_s1a_lvl_ao,
>> [MSM8953_VDDCX] = &cx_s2a_lvl,
>> [MSM8953_VDDCX_AO] = &cx_s2a_lvl_ao,
>> [MSM8953_VDDCX_VFL] = &cx_s2a_vfl,
>> @@ -844,6 +831,21 @@ static const struct rpmpd_desc qm215_desc = {
>> .max_state = RPM_SMD_LEVEL_TURBO,
>> };
>>
>> +static struct rpmpd *sdm632_rpmpds[] = {
>> + [RPMPD_VDDMD] = &md_s1a_lvl,
>> + [RPMPD_VDDCX] = &cx_s2a_lvl,
>> + [RPMPD_VDDCX_AO] = &cx_s2a_lvl_ao,
>> + [RPMPD_VDDCX_VFL] = &cx_s2a_vfl,
>> + [RPMPD_VDDMX] = &mx_s7a_lvl,
>> + [RPMPD_VDDMX_AO] = &mx_s7a_lvl_ao,
>> +};
>> +
>> +static const struct rpmpd_desc sdm632_desc = {
>> + .rpmpds = sdm632_rpmpds,
>> + .num_pds = ARRAY_SIZE(sdm632_rpmpds),
>> + .max_state = RPM_SMD_LEVEL_TURBO,
>> +};
>> +
>> static struct rpmpd *sdm660_rpmpds[] = {
>> [RPMPD_VDDCX] = &cx_rwcx0_lvl,
>> [RPMPD_VDDCX_AO] = &cx_rwcx0_lvl_ao,
>> @@ -954,6 +956,7 @@ static const struct of_device_id
>> rpmpd_match_table[] = {
>> { .compatible = "qcom,qcm2290-rpmpd", .data = &qcm2290_desc },
>> { .compatible = "qcom,qcs404-rpmpd", .data = &qcs404_desc },
>> { .compatible = "qcom,qm215-rpmpd", .data = &qm215_desc },
>> + { .compatible = "qcom,sdm632-rpmpd", .data = &sdm632_desc },
>> { .compatible = "qcom,sdm660-rpmpd", .data = &sdm660_desc },
>> { .compatible = "qcom,shikra-rpmpd", .data = &shikra_desc },
>> { .compatible = "qcom,sm6115-rpmpd", .data = &sm6115_desc },
>>
>> --
>> 2.56.0
>>
next prev parent reply other threads:[~2026-10-06 18:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 22:38 [PATCH v3 0/7] MSM8953/SDM632 rpmpd/mss fixes Barnabás Czémán
2026-10-01 22:38 ` [PATCH v3 1/7] dt-bindings: power: qcom-rpmpd: define RPMPD_VDDMD Barnabás Czémán
2026-10-02 9:57 ` Krzysztof Kozlowski
2026-10-02 14:04 ` Barnabás Czémán
2026-10-05 7:00 ` Dmitry Baryshkov
2026-10-01 22:38 ` [PATCH v3 2/7] dt-bindings: power: qcom,rpmpd: Add SDM632 Barnabás Czémán
2026-10-05 7:01 ` Dmitry Baryshkov
2026-10-01 22:38 ` [PATCH v3 3/7] pmdomain: qcom: rpmpd: Split SDM632 pm domains from MSM8953 Barnabás Czémán
2026-10-05 7:04 ` Dmitry Baryshkov
2026-10-06 18:21 ` Barnabás Czémán [this message]
2026-10-01 22:38 ` [PATCH v3 4/7] remoteproc: qcom_q6v5_mss: Use mss as regulator for MSM8953 Barnabás Czémán
2026-10-05 7:06 ` Dmitry Baryshkov
2026-10-06 18:18 ` Barnabás Czémán
2026-10-01 22:38 ` [PATCH v3 5/7] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add SDM632 Barnabás Czémán
2026-10-02 10:01 ` Krzysztof Kozlowski
2026-10-02 14:05 ` Barnabás Czémán
2026-10-01 22:38 ` [PATCH v3 6/7] remoteproc: qcom_q6v5_mss: Add SDM632 MSS Barnabás Czémán
2026-10-01 22:38 ` [PATCH v3 7/7] arm64: dts: qcom: sdm632: Correct power domains Barnabás Czémán
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=d514f6ad8c8d56dfb395f92ac100623b@mainlining.org \
--to=barnabas.czeman@mainlining.org \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=robh@kernel.org \
--cc=stephan@gerhold.net \
--cc=ulfh@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®