From: Conor Dooley <conor@kernel.org>
To: sashiko@lists.linux.dev
Cc: Jisheng Zhang <jszhang@kernel.org>,
krzk+dt@kernel.org, robh@kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/3] dt-bindings: i3c: dw: Add apb reset
Date: Tue, 12 May 2026 17:44:41 +0100 [thread overview]
Message-ID: <20260512-curvy-ashes-bde0e8e8d473@spud> (raw)
In-Reply-To: <20260511230001.1B220C2BCB0@smtp.kernel.org>
[-- Attachment #1: Type: text/plain, Size: 2050 bytes --]
On Mon, May 11, 2026 at 11:00:00PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] Adding a second item to the `resets` and `reset-names` list without specifying `minItems: 1` makes both resets strictly required whenever the property is present, breaking DT schema backward compatibility.
> --
>
> commit 0c4b11b6e45b719eb15a1a87171391a4bfb310b9
> Author: Jisheng Zhang <jszhang@kernel.org>
>
> dt-bindings: i3c: dw: Add apb reset
>
> This commit updates the DesignWare I3C master binding to support an
> optional APB interface reset signal.
>
> > diff --git a/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml b/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml
> > index 613dce7757bc3..2575442b28ff4 100644
> > --- a/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml
> > +++ b/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml
> > @@ -38,10 +38,12 @@ properties:
> > resets:
> > items:
> > - description: Reset signal
> > + - description: APB interface reset signal
>
> Does adding this second item inadvertently make the APB reset strictly
> mandatory for validation? In dt-schema, when items are defined as a list,
> minItems implicitly defaults to the length of that list. Without an
> explicit minItems: 1 constraint, device trees defining only the single
> core_rst reset might fail schema validation.
>
> >
> > reset-names:
> > items:
> > - const: core_rst
> > + - const: apb_rst
>
> Should minItems: 1 be added to both the resets and reset-names properties
> to maintain backward compatibility?
>
> Since the driver gracefully handles a missing apb_rst by using
> devm_reset_control_get_optional_exclusive_deasserted(), adding the minItems
> constraint would keep single-reset configurations perfectly valid.
Obviously this is all crap and can be ignored, since the other reset is
added in the series.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-05-12 16:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 3:19 [PATCH v2 0/3] i3c: dw: Add apb reset support Jisheng Zhang
2026-05-11 3:19 ` Jisheng Zhang
2026-05-11 3:19 ` [PATCH v2 1/3] dt-bindings: i3c: dw: Describe core reset Jisheng Zhang
2026-05-11 3:19 ` Jisheng Zhang
2026-05-11 19:27 ` Frank Li
2026-05-11 19:27 ` Frank Li
2026-05-11 3:19 ` [PATCH v2 2/3] dt-bindings: i3c: dw: Add apb reset Jisheng Zhang
2026-05-11 3:19 ` Jisheng Zhang
2026-05-11 16:02 ` Conor Dooley
2026-05-11 16:02 ` Conor Dooley
2026-05-14 12:17 ` Krzysztof Kozlowski
2026-05-14 12:17 ` Krzysztof Kozlowski
2026-05-14 16:22 ` Conor Dooley
2026-05-14 16:22 ` Conor Dooley
2026-05-11 23:00 ` sashiko-bot
2026-05-12 16:44 ` Conor Dooley [this message]
2026-05-11 3:19 ` [PATCH v2 3/3] i3c: dw: Add apb reset support Jisheng Zhang
2026-05-11 3:19 ` Jisheng Zhang
2026-05-11 23:13 ` sashiko-bot
2026-05-11 19:04 ` [EXT] [PATCH v2 0/3] " Frank Li
2026-05-11 19:04 ` Frank Li
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=20260512-curvy-ashes-bde0e8e8d473@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jszhang@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko@lists.linux.dev \
/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.