* [PATCH] dt-bindings: dma: apple,admac: Fix example interrupt parsing
@ 2022-06-14 15:25 Rob Herring
2022-06-14 15:38 ` Martin Povišer
2022-06-16 13:57 ` Vinod Koul
0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring @ 2022-06-14 15:25 UTC (permalink / raw)
To: Martin Povišer, Vinod Koul, Krzysztof Kozlowski
Cc: dmaengine, devicetree, linux-kernel
Commit 873971f8fb08 ("dt-bindings: dma: Add Apple ADMAC") has a warning
in its example:
Documentation/devicetree/bindings/dma/apple,admac.example.dtb: dma-controller@238200000: interrupts-extended: [[0], [4294967295, 0, 626, 4, 0, 0]] is too short
From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/dma/apple,admac.yaml
The problem is the number of interrupt cells can't be guessed when
there are empty '0' entries. So the example must have a valid interrupt
controller defining the number of interrupt cells.
Fixes: 873971f8fb08 ("dt-bindings: dma: Add Apple ADMAC")
Signed-off-by: Rob Herring <robh@kernel.org>
---
Documentation/devicetree/bindings/dma/apple,admac.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/apple,admac.yaml b/Documentation/devicetree/bindings/dma/apple,admac.yaml
index ab8a4ec7779f..bdc8c129c4f5 100644
--- a/Documentation/devicetree/bindings/dma/apple,admac.yaml
+++ b/Documentation/devicetree/bindings/dma/apple,admac.yaml
@@ -63,6 +63,11 @@ examples:
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
+ aic: interrupt-controller {
+ interrupt-controller;
+ #interrupt-cells = <3>;
+ };
+
admac: dma-controller@238200000 {
compatible = "apple,t8103-admac", "apple,admac";
reg = <0x38200000 0x34000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: dma: apple,admac: Fix example interrupt parsing
2022-06-14 15:25 [PATCH] dt-bindings: dma: apple,admac: Fix example interrupt parsing Rob Herring
@ 2022-06-14 15:38 ` Martin Povišer
2022-06-16 13:57 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Martin Povišer @ 2022-06-14 15:38 UTC (permalink / raw)
To: Rob Herring
Cc: Vinod Koul, Krzysztof Kozlowski, dmaengine, devicetree, linux-kernel
> On 14. 6. 2022, at 17:25, Rob Herring <robh@kernel.org> wrote:
>
> Commit 873971f8fb08 ("dt-bindings: dma: Add Apple ADMAC") has a warning
> in its example:
>
> Documentation/devicetree/bindings/dma/apple,admac.example.dtb: dma-controller@238200000: interrupts-extended: [[0], [4294967295, 0, 626, 4, 0, 0]] is too short
> From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/dma/apple,admac.yaml
>
> The problem is the number of interrupt cells can't be guessed when
> there are empty '0' entries. So the example must have a valid interrupt
> controller defining the number of interrupt cells.
>
> Fixes: 873971f8fb08 ("dt-bindings: dma: Add Apple ADMAC")
> Signed-off-by: Rob Herring <robh@kernel.org>
Thanks,
Acked-by: Martin Povišer <povik+lin@cutebit.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: dma: apple,admac: Fix example interrupt parsing
2022-06-14 15:25 [PATCH] dt-bindings: dma: apple,admac: Fix example interrupt parsing Rob Herring
2022-06-14 15:38 ` Martin Povišer
@ 2022-06-16 13:57 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2022-06-16 13:57 UTC (permalink / raw)
To: Rob Herring
Cc: Martin Povišer, Krzysztof Kozlowski, dmaengine, devicetree,
linux-kernel
On 14-06-22, 09:25, Rob Herring wrote:
> Commit 873971f8fb08 ("dt-bindings: dma: Add Apple ADMAC") has a warning
> in its example:
>
> Documentation/devicetree/bindings/dma/apple,admac.example.dtb: dma-controller@238200000: interrupts-extended: [[0], [4294967295, 0, 626, 4, 0, 0]] is too short
> From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/dma/apple,admac.yaml
>
> The problem is the number of interrupt cells can't be guessed when
> there are empty '0' entries. So the example must have a valid interrupt
> controller defining the number of interrupt cells.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-16 13:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 15:25 [PATCH] dt-bindings: dma: apple,admac: Fix example interrupt parsing Rob Herring
2022-06-14 15:38 ` Martin Povišer
2022-06-16 13:57 ` Vinod Koul
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).