All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Geert Uytterhoeven" <geert+renesas@glider.be>
Cc: conor+dt@kernel.org, wsa+renesas@sang-engineering.com,
	robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: spi: renesas,sh-msiof: Add support for R-Car X5H
Date: Tue, 22 Sep 2026 08:33:55 +0000	[thread overview]
Message-ID: <20260922083355.B7BAF1F0089A@smtp.kernel.org> (raw)
In-Reply-To: <b8f4648eb1151b75d41e561c6b2adbd9bc4c0782.1790065451.git.geert+renesas@glider.be>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: weakened schema validation for older generations' dma counts
--

commit 339efeecd4721be8f1b5b945500191b6aa6436e7
Author: Thanh Quan <thanh.quan.xn@renesas.com>

dt-bindings: spi: renesas,sh-msiof: Add support for R-Car X5H

Document support for Clock-Synchronized Serial Interfaces with FIFO
(MSIOF) in the Renesas R-Car X5H (R8A78000) SoC, which is the first
member of the R-Car Gen5 family.

> diff --git a/Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml b/Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml
> index e0c7047ae8adb..41e423a42654d 100644
> --- a/Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml
> +++ b/Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml

[ ... ]

> @@ -100,11 +105,11 @@ properties:
>  
>    dmas:
>      minItems: 2
> -    maxItems: 4
> +    maxItems: 6

[Severity: Medium]
Does this unintentionally weaken schema validation for older generations?

By relaxing the global maximum to 6, a device tree for older hardware (which
only supports up to 4 DMAs) could now silently pass validation with an invalid
number of DMA channels.

Should this preserve maxItems: 4 globally and only override it to 6 inside an
allOf: if-then conditional block for the new Gen5 compatible?

>  
>    dma-names:
>      minItems: 2
> -    maxItems: 4
> +    maxItems: 6

[Severity: Medium]
Similarly, does relaxing this limit globally allow older generations to define
more dma-names than supported without generating a validation warning?

>      items:
>        enum: [ tx, rx ]
>

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1790065451.git.geert+renesas@glider.be?part=1

  reply	other threads:[~2026-09-22  8:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22  8:26 [PATCH 0/2] spi: sh-msiof: Add support for R-Car X5H Geert Uytterhoeven
2026-09-22  8:27 ` [PATCH 1/2] dt-bindings: spi: renesas,sh-msiof: " Geert Uytterhoeven
2026-09-22  8:33   ` sashiko-bot [this message]
2026-09-22  8:47     ` Geert Uytterhoeven
2026-09-22 11:27   ` Wolfram Sang
2026-09-22 11:46   ` Mark Brown
2026-09-22  8:27 ` [PATCH 2/2] spi: sh-msiof: Add support for R-Car Gen5 Geert Uytterhoeven
2026-09-22 11:27   ` Wolfram Sang
2026-09-22 12:56 ` [PATCH 0/2] spi: sh-msiof: Add support for R-Car X5H Mark Brown

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=20260922083355.B7BAF1F0089A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.