Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Message-ID: <840a9364-352d-b79b-6e7a-c54912e2297a@sberdevices.ru> Date: Fri, 14 Jul 2023 22:22:53 +0300 MIME-Version: 1.0 Subject: Re: [RFC PATCH v3 2/3] dt-bindings: nand: meson: make ECC properties dependent Content-Language: en-US References: <20230711122129.2635558-1-AVKrasnov@sberdevices.ru> <20230711122129.2635558-3-AVKrasnov@sberdevices.ru> <20230714155553.GA3913802-robh@kernel.org> From: Arseniy Krasnov In-Reply-To: <20230714155553.GA3913802-robh@kernel.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+lwn-linux-arm-kernel=archive.lwn.net@lists.infradead.org List-Archive: To: Rob Herring Cc: Liang Yang , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , oxffffaa@gmail.com, kernel@sberdevices.ru, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Message-ID: <20230714192253.CkC45kGc6CcE4qtM2EbydDtGZpLAWFlk35c1SKnfsiQ@z> On 14.07.2023 18:55, Rob Herring wrote: > On Tue, Jul 11, 2023 at 03:21:28PM +0300, Arseniy Krasnov wrote: >> ECC properties 'nand-ecc-strength' and 'nand-ecc-step-size' depends on >> each other, so they must be both either set or not set. > > Is that true for all drivers or just meson? As Miquel Raynal suggested, this will be implemented only for Meson driver at this moment. Here is link with reply: https://lore.kernel.org/linux-mtd/20230705065434.297040-1-AVKrasnov@sberdevices.ru/T/#m88705a0039fb30c18a9bb2b03a1add5f7e212a3b Thanks, Arseniy > >> In first case >> ECC core will try to use these values if possible (by checking ECC caps >> provided by driver), in second case ECC core will select most optimal >> values for both properties. >> >> Signed-off-by: Arseniy Krasnov >> --- >> Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> index e81757c9e0ed..4f6e56542a7e 100644 >> --- a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> @@ -58,6 +58,10 @@ patternProperties: >> meson-gxl-nfc 8, 16, 24, 30, 40, 50, 60 >> meson-axg-nfc 8 >> >> + dependencies: >> + nand-ecc-strength: ['nand-ecc-step-size'] >> + nand-ecc-step-size: ['nand-ecc-strength'] >> + >> required: >> - compatible >> - reg >> -- >> 2.35.0 >> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel