* [PATCH v2] dt-bindings: serial: renesas,scif: Increase number of DMA channels to 6
@ 2026-09-22 10:00 Geert Uytterhoeven
2026-09-22 10:07 ` sashiko-bot
2026-09-28 6:29 ` Krzysztof Kozlowski
0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2026-09-22 10:00 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Wolfram Sang
Cc: linux-serial, devicetree, linux-renesas-soc, Geert Uytterhoeven
On R-Car X5H, SCIF serial interfaces are wired to three DMACs, hence
referring to up to six DMA channels.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
v2:
- Correct authorship,
- Add Reviewed-by.
---
Documentation/devicetree/bindings/serial/renesas,scif.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml b/Documentation/devicetree/bindings/serial/renesas,scif.yaml
index 82f54446835e6a5c..b465c93c8357fdb2 100644
--- a/Documentation/devicetree/bindings/serial/renesas,scif.yaml
+++ b/Documentation/devicetree/bindings/serial/renesas,scif.yaml
@@ -145,14 +145,14 @@ properties:
dmas:
minItems: 2
- maxItems: 4
+ maxItems: 6
description:
Must contain a list of pairs of references to DMA specifiers, one for
transmission, and one for reception.
dma-names:
minItems: 2
- maxItems: 4
+ maxItems: 6
items:
enum:
- tx
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] dt-bindings: serial: renesas,scif: Increase number of DMA channels to 6
2026-09-22 10:00 [PATCH v2] dt-bindings: serial: renesas,scif: Increase number of DMA channels to 6 Geert Uytterhoeven
@ 2026-09-22 10:07 ` sashiko-bot
2026-09-28 6:29 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-09-22 10:07 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: robh, devicetree, linux-serial, conor+dt, wsa+renesas
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: serial: missing conditional maxItems restriction for dmas
--
commit 24eddc5a7c6d95e9e9c7337b59a2dae1a4924772
Author: Geert Uytterhoeven <geert+renesas@glider.be>
dt-bindings: serial: renesas,scif: Increase number of DMA channels to 6
On R-Car X5H, SCIF serial interfaces are wired to three DMACs, hence
referring to up to six DMA channels.
> diff --git a/Documentation/devicetree/bindings/serial/renesas,scif.yaml b/Documentation/devicetree/bindings/serial/renesas,scif.yaml
> index 82f54446835e6..b465c93c8357f 100644
> --- a/Documentation/devicetree/bindings/serial/renesas,scif.yaml
> +++ b/Documentation/devicetree/bindings/serial/renesas,scif.yaml
> @@ -145,14 +145,14 @@ properties:
>
> dmas:
> minItems: 2
> - maxItems: 4
> + maxItems: 6
[Severity: Low]
Does this global relaxation of maxItems in properties.dmas cause incomplete
validation for older hardware?
By increasing the top-level maxItems limit to 6 globally without a conditional
restriction, device trees for older generations of SoCs (Gen1 through Gen4)
that incorrectly specify 5 or 6 DMA channels will now silently pass schema
validation. Previously they would be caught as errors.
This triggers when a developer defines an invalid device tree node for an older
SoC with more than 4 DMA channels and runs make dt_binding_check.
> description:
> Must contain a list of pairs of references to DMA specifiers, one for
> transmission, and one for reception.
>
> dma-names:
> minItems: 2
> - maxItems: 4
> + maxItems: 6
[Severity: Low]
Similarly, does increasing the top-level maxItems limit in properties.dma-names
globally allow invalid device trees for older SoCs to bypass validation?
Without an if-then conditional block restricting older hardware, specifying 5
or 6 DMA channel names will silently pass schema checks for SoC generations
that only support up to 4.
--
Sashiko AI review · https://sashiko.dev/#/patchset/4dc02f4ff8a63c2bd41b15359828ce9befd2da2f.1790071199.git.geert+renesas@glider.be?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: serial: renesas,scif: Increase number of DMA channels to 6
2026-09-22 10:00 [PATCH v2] dt-bindings: serial: renesas,scif: Increase number of DMA channels to 6 Geert Uytterhoeven
2026-09-22 10:07 ` sashiko-bot
@ 2026-09-28 6:29 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-09-28 6:29 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Wolfram Sang, linux-serial, devicetree,
linux-renesas-soc
On Tue, Sep 22, 2026 at 12:00:09PM +0200, Geert Uytterhoeven wrote:
> On R-Car X5H, SCIF serial interfaces are wired to three DMACs, hence
> referring to up to six DMA channels.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-28 6:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-22 10:00 [PATCH v2] dt-bindings: serial: renesas,scif: Increase number of DMA channels to 6 Geert Uytterhoeven
2026-09-22 10:07 ` sashiko-bot
2026-09-28 6:29 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox