public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] PL353 SW ECC fixes
@ 2026-01-26 16:58 Andrea Scian via B4 Relay
  2026-01-26 16:58 ` [PATCH v2 1/2] mtd: rawnand: pl353: Fix software ECC support Andrea Scian via B4 Relay
  2026-01-26 16:58 ` [PATCH v2 2/2] mtd: rawnand: pl353: Add message about ECC mode Andrea Scian via B4 Relay
  0 siblings, 2 replies; 4+ messages in thread
From: Andrea Scian via B4 Relay @ 2026-01-26 16:58 UTC (permalink / raw)
  To: Miquel Raynal, Michal Simek, Richard Weinberger,
	Vignesh Raghavendra
  Cc: linux-mtd, linux-kernel, Amit Kumar, Andrea Scian

PL353 has some known errata with its ECC implementation and it may be
useful to switch to software ECC, to avoid issue with this.

On-die ECC is already supported (while I didn't test it) but when
enabling SW ECC we get operation-not-supported error during page write
(page read already work correctly)

IMHO it's enough to have 1-bit Hamming ECC correction, because this is
the only one supported on PL353, but this might be a wrong assumption.

This has been tested with nandflipbits and mtd_nandbiterrs

---
Changes in v2:
- change dev_info() into dev_dbg() to reduce messages
- Link to v1: https://lore.kernel.org/r/20260121-pl353-soft-ecc-support-v1-0-00ad8e160d83@dave.eu

---
Andrea Scian (2):
      mtd: rawnand: pl353: Fix software ECC support
      mtd: rawnand: pl353: Add message about ECC mode

 drivers/mtd/nand/raw/pl35x-nand-controller.c | 5 +++++
 1 file changed, 5 insertions(+)
---
base-commit: 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
change-id: 20260121-pl353-soft-ecc-support-794e1e75373a

Best regards,
-- 
Andrea Scian <andrea.scian@dave.eu>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-29 19:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26 16:58 [PATCH v2 0/2] PL353 SW ECC fixes Andrea Scian via B4 Relay
2026-01-26 16:58 ` [PATCH v2 1/2] mtd: rawnand: pl353: Fix software ECC support Andrea Scian via B4 Relay
2026-01-29 19:07   ` Miquel Raynal
2026-01-26 16:58 ` [PATCH v2 2/2] mtd: rawnand: pl353: Add message about ECC mode Andrea Scian via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox