[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zo9mWMUJiTJoj2b+@hu-varada-blr.qualcomm.com>
Date: Thu, 11 Jul 2024 10:28:00 +0530
From: Varadarajan Narayanan <quic_varada@...cinc.com>
To: Konrad Dybcio <konrad.dybcio@...aro.org>
CC: <robh@...nel.org>, <krzk+dt@...nel.org>, <conor+dt@...nel.org>,
<andersson@...nel.org>, <mturquette@...libre.com>, <sboyd@...nel.org>,
<ilia.lin@...nel.org>, <rafael@...nel.org>, <viresh.kumar@...aro.org>,
<ulf.hansson@...aro.org>, <quic_sibis@...cinc.com>,
<quic_rjendra@...cinc.com>, <danila@...xyga.com>,
<neil.armstrong@...aro.org>, <otto.pflueger@...cue.de>,
<abel.vesa@...aro.org>, <luca@...tu.xyz>, <geert+renesas@...der.be>,
<stephan.gerhold@...nkonzept.com>, <linux-arm-msm@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-pm@...r.kernel.org>, <linux-clk@...r.kernel.org>,
Praveenkumar I
<quic_ipkumar@...cinc.com>
Subject: Re: [PATCH v6 8/9] soc: qcom: cpr3: Add IPQ9574 definitions
On Wed, Jul 10, 2024 at 01:12:19PM +0200, Konrad Dybcio wrote:
> On 10.07.2024 8:11 AM, Varadarajan Narayanan wrote:
> > From: Praveenkumar I <quic_ipkumar@...cinc.com>
> >
> > * Add thread, scaling factor, CPR descriptor defines to enable
> > CPR on IPQ9574.
> >
> > * Skip 'acc' usage since IPQ9574 does not have acc
> >
> > Signed-off-by: Praveenkumar I <quic_ipkumar@...cinc.com>
> > Signed-off-by: Varadarajan Narayanan <quic_varada@...cinc.com>
> > ---
>
> [...]
>
> >
> > /* CPRh disallows MEM-ACC access from the HLOS */
> > - if (!(data->acc_desc || desc->cpr_type == CTRL_TYPE_CPRH))
> > + if (!(data->acc_desc || desc->cpr_type == CTRL_TYPE_CPRH ||
> > + of_device_is_compatible(dev->of_node, "qcom,ipq9574-cpr4")))
> > return dev_err_probe(dev, -EINVAL, "Invalid ACC data\n");
>
> This is something I'd also like to fold into v16.. perhaps
>
> if (data->acc_desc && desc->cpr_type == CTRL_TYPE_CPRH)
>
> could work instead? this way we trust the programmer that
> acc_desc's presence/absence is intentional and only throw and
> error if it's present with type == CPRH
I tried this change and it works for ipq9574.
Thanks
Varada
Powered by blists - more mailing lists