[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d4a51e98-72ae-49c4-80ec-fe3784c3e8f1@oss.qualcomm.com>
Date: Wed, 4 Feb 2026 10:40:39 +0530
From: Praveen Talari <praveen.talari@....qualcomm.com>
To: Konrad Dybcio <konrad.dybcio@....qualcomm.com>,
Andi Shyti <andi.shyti@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley
<conor+dt@...nel.org>,
Mukesh Kumar Savaliya <mukesh.savaliya@....qualcomm.com>,
Viken Dadhaniya <viken.dadhaniya@....qualcomm.com>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>, linux-arm-msm@...r.kernel.org,
linux-i2c@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, bjorn.andersson@....qualcomm.com,
dmitry.baryshkov@....qualcomm.com
Cc: prasad.sodagudi@....qualcomm.com, quic_vtanuku@...cinc.com,
aniket.randive@....qualcomm.com, chandana.chiluveru@....qualcomm.com,
jyothi.seerapu@....qualcomm.com
Subject: Re: [PATCH v4 06/13] soc: qcom: geni-se: Introduce helper API for
attaching power domains
On 2/3/2026 5:53 PM, Konrad Dybcio wrote:
> On 2/2/26 7:09 PM, Praveen Talari wrote:
>> The GENI Serial Engine drivers (I2C, SPI, and SERIAL) currently handle
>> the attachment of power domains. This often leads to duplicated code
>> logic across different driver probe functions.
>>
>> Introduce a new helper API, geni_se_domain_attach(), to centralize
>> the logic for attaching "power" and "perf" domains to the GENI SE
>> device.
>>
>> Signed-off-by: Praveen Talari <praveen.talari@....qualcomm.com>
>> ---
>
> [...]
>
>> +int geni_se_domain_attach(struct geni_se *se)
>> +{
>> + struct dev_pm_domain_attach_data pd_data = {
>> + .pd_flags = PD_FLAG_DEV_LINK_ON,
>> + .pd_names = (const char*[]) { "power", "perf" },
>> + .num_pd_names = 2,
>> + };
>> + int ret;
>> +
>> + ret = dev_pm_domain_attach_list(se->dev,
>> + &pd_data, &se->pd_list);
>
> Let's use devm_pm_domain_attach_list() (notice the 'm'), as the list
> is never detached from at the moment
Sure, will add in next version.
Thanks,
Praveen Talari
>
> otherwise lgtm
>
> Konrad
Powered by blists - more mailing lists