From: sashiko-bot@kernel.org
To: "Fil Dunsky" <filipp.dunsky@gmail.com>,
"Miquel Raynal" <miquel.raynal@bootlin.com>,
"Richard Weinberger" <richard@nod.at>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Philipp Zabel" <p.zabel@pengutronix.de>
Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v8 2/4] dt-bindings: mtd: Add Cortina CS7542 NAND controller
Date: Fri, 04 Dec 2026 14:38:58 +0000 [thread overview]
Message-ID: <sashiko-outbox-249991@kernel.org> (raw)
In-Reply-To: <20261204-b4-cs7542-nand-v8-2-bb068644f71f@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: mtd: narrow nand@[01] pattern lets nand@2..f bypass
schema checks
- [Low] dt-bindings: mtd: new cortina,cs7542-nand example uses
deprecated nand-ecc-mode
--
commit c5a8c999ee36c043d6790c4db87262ce31e97a61
Author: Fil Dunsky <filipp.dunsky@gmail.com>
dt-bindings: mtd: Add Cortina CS7542 NAND controller
This commit adds the Device Tree binding schema for the Cortina Systems
CS7542 NAND flash controller, describing its registers, optional data
aperture, clock, interrupt, shared reset, and two chip-select child nodes.
> diff --git a/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.yaml b/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.yaml
> new file mode 100644
> index 0000000000000..3bc5b141133d6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.yaml
> @@ -0,0 +1,89 @@
[ ... ]
> +allOf:
> + - $ref: nand-controller.yaml#
[ ... ]
> +patternProperties:
> + "^nand@[01]$":
> + type: object
> + $ref: raw-nand-chip.yaml#
> + properties:
> + reg:
> + minimum: 0
> + maximum: 1
> + unevaluatedProperties: false
[Severity: Low]
Can child nodes named nand@2 through nand@f bypass the reg maximum and child
unevaluatedProperties: false check here?
Because this schema inherits nand-controller.yaml#, its ^nand@[a-f0-9]$
pattern evaluates nand@2..f against raw-nand-chip.yaml#, which sets no reg
upper bound and allows additionalProperties. Root unevaluatedProperties:
false then accepts out-of-range chip selects and unknown child properties.
Matching ^nand@[a-f0-9]$ here (or setting ^nand@[2-9a-f]$: false) would
enforce the two-chip-select limit and child property checks across all NAND
child nodes.
[ ... ]
> + nand@0 {
> + reg = <0>;
> + nand-ecc-mode = "hw";
> + nand-ecc-algo = "hamming";
> + nand-ecc-step-size = <256>;
> + nand-ecc-strength = <1>;
> + };
[Severity: Low]
Should the example avoid the deprecated nand-ecc-mode property?
raw-nand-property.yaml marks nand-ecc-mode as deprecated. New bindings can
use nand-ecc-engine instead, or omit it since the raw NAND core already
defaults to on-host ECC.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-b4-cs7542-nand-v8-0-bb068644f71f@gmail.com?part=2
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2026-12-04 14:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 14:03 [PATCH v8 0/4] Add Cortina Systems CS7542 NAND controller support Fil Dunsky via B4 Relay
2026-12-04 14:03 ` [PATCH v8 1/4] mtd: rawnand: Honor controller raw page callbacks in ECC_NONE Fil Dunsky via B4 Relay
2026-12-04 14:03 ` [PATCH v8 2/4] dt-bindings: mtd: Add Cortina CS7542 NAND controller Fil Dunsky via B4 Relay
2026-12-04 14:12 ` Philipp Zabel
2026-12-04 14:38 ` sashiko-bot [this message]
2026-12-04 14:03 ` [PATCH v8 3/4] mtd: rawnand: Add Cortina CS7542 controller support Fil Dunsky via B4 Relay
2026-12-04 14:12 ` Philipp Zabel
2026-12-04 15:37 ` Fil Dunsky
2026-12-04 15:05 ` sashiko-bot
2026-12-04 14:03 ` [PATCH v8 4/4] MAINTAINERS: Add Cortina CS7542 NAND controller entry Fil Dunsky via B4 Relay
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=sashiko-outbox-249991@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=filipp.dunsky@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=p.zabel@pengutronix.de \
--cc=richard@nod.at \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vigneshr@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox