From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796395139; b=h+930WKSjzavVD2wwD9qn13efv8r8ZaCQr6nZurkqM754UB2tofCU2VzUpOBbWbl9FOT bfWKtWD5lPwYX1TwPN/ca5McZECmJwHTyhHmIdqfsU/Qk1o17E0BVF+2Gj5r8HN8fgGMu D5om+eFWvIUk9W/FE7puCVxnSw1JdV+KlX+l/mp+ixN+Htt/hpWNyf+QfKPsBvTV0JzNE waUlk2NchluHOKudNN+ZC6zYx00wjH3YxAOGhvOiJovC6C/9eCpdrMppwS6aOEO7pbzOt OPq0GC2OavS7U+7MO2Vyn2+Hvoeh50r190ooLzYM5C1IuziLhYJV60G8zHjxJXaAuzA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796395139; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Sx+7+hYNr0aCBnUntDj/ognhyKXc8jX5hOennvIHbeg=; b=1vkNMIlFzHuojuVil/tQYvFMM9tGxIOPAe+QEvhsoa70boGrH1ZHRpkST551ebIS1yY+ cVPrky1Xm3KCoPhArUhSOT+69W4zqp2GKl5+R+mWX5oYMXharsEw2/OTDev8kpaw/nYH1 /QZ/KFyafF4EIgz4C/687YEBKfVjqu/XGXedwuYp5Y8shgZO3NTFZRr7+V84KjuNcE1AY GHLmTkbJip+MWPRJPQENjCg13obWVNgbiHt2kLVbekhkgY636426nmaJtels7drunCjbr /4JK/cbROrPRxVQJP0FFnI3eozA940/4nEk0mXm/ZDzBUpuG8bZDS8SUTVXDWU6cNQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cli9ziHX; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FA4F606A322 for ; Fri, 4 Dec 2026 14:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cli9ziHX Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3E561F000C2; Fri, 4 Dec 2026 14:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796395139; bh=Sx+7+hYNr0aCBnUntDj/ognhyKXc8jX5hOennvIHbeg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=cli9ziHX/mOjmjZTLopCAOeBGNUVGh5zVMBgkyrXAiIwR707avTuHpQLamlHXmAb/ ROdSHiqL0MJmCUCyDEH8S0l5x0iz5k5dSoJuOoVaCqIzDsM+sykMjhE8VhNi9Lgfu4 JqpR6fxPY25btFJIP9csI3QCKavtuGIdRjQiVDx6HVfQIhMPePZt7vESi2/juzvDVQ ZIAJAyVtGdjWGI4VAR6MZVBYPeDXc8RiozbtAoXn23pvK7jeBxaPtqv87XvmXJuAk1 OKxNCfnX0sWN2jEbU9Bd9sS0vINSp2NhbGd7LyVW4Fch3xTa7SmDABY6VEWqXZy6qw ZmCNEDxHnmseA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v8 2/4] dt-bindings: mtd: Add Cortina CS7542 NAND controller Reply-To: sashiko-reviews@lists.linux.dev To: "Fil Dunsky" , "Miquel Raynal" , "Richard Weinberger" , "Vignesh Raghavendra" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Philipp Zabel" Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org In-Reply-To: <20261204-b4-cs7542-nand-v8-2-bb068644f71f@gmail.com> References: <20261204-b4-cs7542-nand-v8-0-bb068644f71f@gmail.com> <20261204-b4-cs7542-nand-v8-2-bb068644f71f@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 14:38:58 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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.ya= ml 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 =3D <0>; > + nand-ecc-mode =3D "hw"; > + nand-ecc-algo =3D "hamming"; > + nand-ecc-step-size =3D <256>; > + nand-ecc-strength =3D <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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-b4-cs7542-= nand-v8-0-bb068644f71f@gmail.com?part=3D2