From: Fenglin Wu <quic_fenglinw@quicinc.com>
To: Stephen Boyd <sboyd@kernel.org>, Andy Gross <agross@kernel.org>,
"Bjorn Andersson" <bjorn.andersson@linaro.org>,
Rob Herring <robh+dt@kernel.org>, <devicetree@vger.kernel.org>,
<linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <quic_collinsd@quicinc.com>, <quic_subbaram@quicinc.com>,
<tglx@linutronix.de>, <maz@kernel.org>,
David Collins <collinsd@codeaurora.org>
Subject: Re: [RESEND PATCH v6 08/10] dt-bindings: spmi: spmi-pmic-arb: make interrupt properties as optional
Date: Fri, 2 Sep 2022 19:41:43 +0800 [thread overview]
Message-ID: <88ce066b-632a-d76f-c3d8-d100a96e1f11@quicinc.com> (raw)
In-Reply-To: <20220831173631.25C83C43470@smtp.kernel.org>
On 2022/9/1 1:36, Stephen Boyd wrote:
> Quoting Fenglin Wu (2022-06-11 20:24:44)
>> From: David Collins <collinsd@codeaurora.org>
>>
>> Make all interrupt related properties as optional instead of
>> required. Some boards do not required PMIC IRQ support and it
>> isn't needed to handle SPMI bus transactions, so specify it as
>> optional.
>>
>> Signed-off-by: David Collins <collinsd@codeaurora.org>
>> Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
>> Acked-by: Rob Herring <robh@kernel.org>
>> ---
>> Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.yaml | 3 ---
>> 1 file changed, 3 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.yaml b/Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.yaml
>> index 55d379c..fee4f0e 100644
>> --- a/Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.yaml
>> +++ b/Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.yaml
>> @@ -88,9 +88,6 @@ properties:
>> required:
>> - compatible
>> - reg-names
>> - - interrupts
>> - - interrupt-names
>> - - '#interrupt-cells'
>
> Let me clarify my comment on the next driver patch here. It looks like
> we're making the properties optional here so that the driver can choose
> to create or not create the irqchip based on the presence of the
> property. Are there PMIC arbiters that don't have irq support? Or is it
> only that some board designs don't use interrupt support of the PMIC,
> because all the devices that use interrupts on the PMIC aren't enabled
> (status = "okay")?
>
> We shouldn't get into a situation where we're removing the interrupt
> properties because we want the driver to skip creating the irqchip. That
> makes the binding too loose, where we can't validate existing DT files.
> It also makes it confusing to include the DTS files when the device
> always supports interrupt capabilities, just we don't want to use it.
Thanks for reviewing the changes Stephen.
I discussed with the change author David, he mentioned that these two
changes were made for supporting trust VM features. In the design, there
are two SPMI arbiter device instances, one is in non-secure world (with
Linux Android) and the other is in secure world (with LE), both
instances use the same SPMI arbiter driver but only the LA system
handles the interrupt, and the irqchip will not be created for LE system
to prevent any interrupt being fired and routed to the LA system.
There are actually two other changes in SPMI driver made for the same
secure VM feature. The driver exports a new API which would translate
the SPMI address (SID+PID+OFFSET) into the SoC physical register address
range that handles the SPMI write to the corresponding SPMI registers,
and the secure system would do some protection on these registers to
block any SPMI write from non-secure world when the secure feature is
enabled.
There will be 4 changes related in total, I will send them together with
a new topic next time and you can help to review them after that.
Thank you!
next prev parent reply other threads:[~2022-09-02 11:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1655004286-11493-1-git-send-email-quic_fenglinw@quicinc.com>
2022-06-12 3:24 ` [RESEND PATCH v6 08/10] dt-bindings: spmi: spmi-pmic-arb: make interrupt properties as optional Fenglin Wu
2022-08-31 17:36 ` Stephen Boyd
2022-09-02 11:41 ` Fenglin Wu [this message]
[not found] <1651108369-11059-1-git-send-email-quic_fenglinw@quicinc.com>
2022-04-28 1:12 ` [RESEND PATCH V6 " Fenglin Wu
2022-04-29 22:30 ` Rob Herring
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=88ce066b-632a-d76f-c3d8-d100a96e1f11@quicinc.com \
--to=quic_fenglinw@quicinc.com \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=collinsd@codeaurora.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=quic_collinsd@quicinc.com \
--cc=quic_subbaram@quicinc.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=tglx@linutronix.de \
/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).