From: Vinod Koul <vkoul@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>,
linux-arm-msm@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
dmaengine@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: dmaengine: qcom: gpi: Add minItems for interrupts
Date: Thu, 14 Apr 2022 15:55:06 +0530 [thread overview]
Message-ID: <Ylf2gsJ+Ks0wz6i3@matsya> (raw)
In-Reply-To: <0598d1bb-cd7c-1414-910c-ae6bedc8295d@linaro.org>
On 14-04-22, 09:36, Krzysztof Kozlowski wrote:
> On 14/04/2022 08:42, Vinod Koul wrote:
> > Add the minItems for interrupts property as well. In the absence of
> > this, we get warning if interrupts are less than 13
> >
> > arch/arm64/boot/dts/qcom/qrb5165-rb5.dtb:
> > dma-controller@800000: interrupts: [[0, 588, 4], [0, 589, 4], [0, 590,
> > 4], [0, 591, 4], [0, 592, 4], [0, 593, 4], [0, 594, 4], [0, 595, 4], [0,
> > 596, 4], [0, 597, 4]] is too short
> >
> > Signed-off-by: Vinod Koul <vkoul@kernel.org>
> > ---
> > Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> > index 8a790ffbdaac..7d2fc4eb5530 100644
> > --- a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> > +++ b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> > @@ -32,6 +32,7 @@ properties:
> > interrupts:
> > description:
> > Interrupt lines for each GPI instance
> > + minItems: 1
>
> This should be some real case minimum, not just 1. Unless really only
> one interrupt is also possible in existing variations?
So that depends on the channels available to use which can be worst case
of 1. Maximum is 13.. Most of the controllers are between 12-13, but we
dont want to change binding in future if controller has lesser channels
right?
--
~Vinod
next prev parent reply other threads:[~2022-04-14 10:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 6:42 [PATCH] dt-bindings: dmaengine: qcom: gpi: Add minItems for interrupts Vinod Koul
2022-04-14 7:36 ` Krzysztof Kozlowski
2022-04-14 10:25 ` Vinod Koul [this message]
2022-04-14 11:44 ` Krzysztof Kozlowski
2022-04-20 10:36 ` Vinod Koul
2022-04-20 11:11 ` Krzysztof Kozlowski
2022-04-20 11:32 ` Vinod Koul
2022-04-20 12:06 ` Krzysztof Kozlowski
2022-04-20 12:41 ` Vinod Koul
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=Ylf2gsJ+Ks0wz6i3@matsya \
--to=vkoul@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@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