From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E318E3B95EB; Wed, 25 Feb 2026 15:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772032197; cv=none; b=cVCStiq+smE44apXFgrC74zpHsxa4LhvR1FH4qVIRMy16QC1VRuCa82g6z1Geqk/Ai93YJdxgelGbjIp2KRcWD0BlecslWX8gQzXKVnfXwM9Hg5CWr3mm5oGwm9BuXTsQ0j8BF67WrW/qZI+4/VG8CyGwaGVUB0SS3SpfMPju4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772032197; c=relaxed/simple; bh=HgUlI7q2fA9MZdaUIYY0d5mtoXIeH07oXQLHKae4E8E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=TRJjQKT3t3eDXMkku5rcXlvV2TlJyi0NmjUGAHCnri1hpvqgOV18TO74I9AjYs0X5mUMd/l/LyMuNh/FElIUjVljiOPOYFoj1ynuLrYBrRW3mSdEne142TrHQ7wxTRP4uYnhKRf8azZrmKGdwd/DzYYxpEcukr2AQrP8M8DdIBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=gKss4o40; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="gKss4o40" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 51DDD4E410F8; Wed, 25 Feb 2026 15:09:53 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 1BFEB5FDE6; Wed, 25 Feb 2026 15:09:53 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 334D410369260; Wed, 25 Feb 2026 16:09:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1772032191; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=HgUlI7q2fA9MZdaUIYY0d5mtoXIeH07oXQLHKae4E8E=; b=gKss4o40gnoZRYfhulIOZSS3nn8HKYV+6mmPlIuaHhJE9kk46pLruEtjnzlFW8jyb2Nz7A bx2nHBEKr5Kyqg7Gra1uTvM7H6LpcP0MJBCLwaKatyM4l5D6mYAOzepRsJ3GDyDm7dcbPR bDuKQuchs4d9PqXCjsN9AtV+OIhtFNxXH8LBkSXqFWDlaLapzamBjDJETt1FYEr+myyMC1 ENUKo+b2pKQDFTiLyD+V8J9IvuK0qI6KhSur1m9pdxSMs5jdTD4BbtzssA6SmIGX+0S6wd TjcJWumXbBLQ42yDL1nd8QxDMqpA0C8GJWhGaDuzZtANnhET6hz+5UNtYCJeEw== From: Miquel Raynal To: Cheng Ming Lin Cc: Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tudor Ambarus , Mikhail Kshevetskiy , Pablo Martin-Gomez , Tianling Shen , Pratyush Yadav , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alvinzhou@mxic.com.tw, Cheng Ming Lin Subject: Re: [PATCH v7 1/3] dt-bindings: mtd: spinand: Add randomizer enable/disable properties In-Reply-To: <20260225015705.1113199-2-linchengming884@gmail.com> (Cheng Ming Lin's message of "Wed, 25 Feb 2026 09:57:03 +0800") References: <20260225015705.1113199-1-linchengming884@gmail.com> <20260225015705.1113199-2-linchengming884@gmail.com> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Wed, 25 Feb 2026 16:09:45 +0100 Message-ID: <87o6lcq2py.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 On 25/02/2026 at 09:57:03 +08, Cheng Ming Lin w= rote: > From: Cheng Ming Lin > > Add "nand-randomizer-enable" and "nand-randomizer-disable" boolean > properties. > > These properties allow enabling or disabling the randomizer feature > via the device tree. > > According to JEDEC standard JESD22-A117E, no single data pattern > represents a universal worst-case for all NAND flash failure mechanisms. > Different patterns, such as fully programmed, checkerboard, or mostly > erased, can disproportionately stress specific cells (e.g., programmed, > erased, or those influenced by adjacent states). > > Given that no fixed pattern can cover all scenarios, the use of a > randomized data pattern is a practical and effective mitigation strategy. > Our hardware implements a randomizer feature that scrambles user data > before it is written to the flash and restores the original data upon rea= d. > > This ensures the data stored on the media is more evenly distributed, > thus reducing pattern-dependent degradation. This is especially crucial > for preventing errors caused by unbalanced data (e.g., all zeros or > all ones) in blocks with high program/erase (P/E) cycle counts. > Ultimately, the randomizer improves the long-term reliability and > endurance of the flash device. > > Please refer to the following link for randomizer feature: > Link: > https://www.mxic.com.tw/Lists/ApplicationNote/Attachments/2151/AN1051V1-T= he%20Introduction%20of%20Randomizer%20Feature%20on%20MX30xFxG28AD_MX35xFxG2= 4AD. This link brings me to a "We have moved to our new home" page. Anyhow, this Links does not make much sense in the binding. If this is a very generic AN, why not, but maybe I'd move it to the SPI NAND patches, as the name implies that it is a bit specific to Macronix chips. > Signed-off-by: Cheng Ming Lin Otherwise both the binding and code look ok from my PoV. So besides the Link that must be moved and fixed, I'll wait for binding approval. Thanks, Miqu=C3=A8l