summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAhmed Naseef <naseefkm@gmail.com>2026-02-07 11:02:43 +0400
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-02-25 17:41:35 +0100
commit0c741b8b6963e584b41c284cd743c545636edb04 (patch)
treec72343bd14ba774a58a51845bfa8c13c9d9b3537 /tools/perf/scripts/python/stackcollapse.py
parent43479bb3703f17da6cdfaa2a7f4b93db9c6908bc (diff)
mtd: nand: realtek-ecc: relax OOB size check to minimum
The ECC engine strictly validates that flash OOB size equals exactly 64 bytes. However, some NAND chips have a larger physical OOB while vendor firmware only uses the first 64 bytes for the ECC layout. For example the Macronix MX35LF1G24AD found in the Netlink HG323DAC has 128 byte physical OOB but vendor firmware only uses the first 64 bytes (24 bytes free + 40 bytes BCH6 parity), leaving bytes 64-127 unused. Since the engine only operates on the first 64 bytes of OOB regardless of the physical size, change the check from exact match to minimum size. Flash with OOB >= 64 bytes works correctly with the engine's 64-byte layout. Suggested-by: Markus Stockhausen <markus.stockhausen@gmx.de> Signed-off-by: Ahmed Naseef <naseefkm@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions