diff options
| author | Md Sadre Alam <md.alam@oss.qualcomm.com> | 2026-07-16 11:13:05 +0530 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-07-27 18:29:09 +0100 |
| commit | ed4b52b24c556cd681b99739e2bbef7cf48fe66e (patch) | |
| tree | 47c7ea74362255cf72362b550132aaaf33a2dbd8 /tools/perf/scripts/python/bin | |
| parent | a44a020465e34dacf5ca2f558ee920ec5add3eca (diff) | |
spi: spi-qpic-snand: Increase ECC strength for large OOB SPI-NAND devices
Some SPI-NAND devices with large OOB areas require a stronger ECC
configuration than the default one provided through firmware
description. For example, Macronix devices with a 256-byte OOB area
report that 4-bit ECC is insufficient and trigger:
nand: WARNING: the ECC used on your system is too weak compared
to the one required by the NAND chip
The QPIC SPI-NAND controller supports both 4-bit and 8-bit BCH ECC
modes. When a device exposes an OOB area of at least 128 bytes, there
is sufficient space to accommodate 8-bit ECC without exceeding the OOB
layout constraints.
Automatically increase the ECC strength to 8 bits when the detected OOB
size is 128 bytes or larger and the current configuration requests a
weaker ECC level. This avoids ECC capability mismatches on devices that
require stronger error correction and improves reliability.
Signed-off-by: Md Sadre Alam <md.alam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260716-8bitecc-v1-1-6eef4bcc3a14@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
