U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] mtd: rawnand: zynq: Fixes and software ECC support
@ 2026-07-02 13:08 Bastien Curutchet
  2026-07-02 13:08 ` [PATCH v3 1/6] mtd: rawnand: zynq: Align the layout structures with the driver namespace Bastien Curutchet
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Bastien Curutchet @ 2026-07-02 13:08 UTC (permalink / raw)
  To: u-boot
  Cc: Thomas Petazzoni, Michal Simek, Dario Binacchi, Michael Trimarchi,
	Andrea Scian, Tom Rini, Andrew Goodbody, Miquel Raynal (DAVE.eu),
	Bastien Curutchet (DAVE.eu)

This driver is deeply broken in many ways. Miquèl has cleaned it up by:
- flagging the most hideous parts (where Micron on-die ECC support is
  hardcoded)
- enabling DT support, eg. for reading the ECC configuration
- fixing software ECC support
- aligning the software ECC OOB layout to the rest of the world and
  allow a working interoperability in Linux.

I then added a patch to fix writes when soft ECC is on.

Signed-off-by: Miquel Raynal (DAVE.eu) <miquel.raynal@bootlin.com>
Signed-off-by: Bastien Curutchet (DAVE.eu) <bastien.curutchet@bootlin.com>
---
Changes in v3:
- Add patch 6 to fix write issues in soft ECC.
- Link to v2: https://lore.kernel.org/r/20260602-dave-upstream-nand-fixes-v2-0-412965ee38bf@bootlin.com

Changes in v2:
- Fix the sponsor: s/DAVE/DAVE.eu/, no other change.
- Link to v1: https://lore.kernel.org/r/20260529-dave-upstream-nand-fixes-v1-0-e5bbddb10676@bootlin.com

---
Bastien Curutchet (DAVE.eu) (1):
      mtd: rawnand: nand_base: Don't overwrite read/write_page_raw() for soft ECC

Miquel Raynal (DAVE.eu) (5):
      mtd: rawnand: zynq: Align the layout structures with the driver namespace
      mtd: rawnand: zynq: Add comments about very bad practices
      mtd: rawnand: zynq: Make sure an of node is attached
      mtd: rawnand: zynq: Do not fail the probe for no reason
      mtd: rawnand: zynq: Fix Software ECC engine support

 drivers/mtd/nand/raw/nand_base.c |   6 +-
 drivers/mtd/nand/raw/zynq_nand.c | 115 ++++++++++-----------------------------
 2 files changed, 32 insertions(+), 89 deletions(-)
---
base-commit: 4433253ecf2041f9362a763bb6cb79960921ac7e
change-id: 20260522-dave-upstream-nand-fixes-60a5336517a2

Best regards,
-- 
Bastien Curutchet (DAVE.eu) <bastien.curutchet@bootlin.com>


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

end of thread, other threads:[~2026-07-03 13:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02 13:08 [PATCH v3 0/6] mtd: rawnand: zynq: Fixes and software ECC support Bastien Curutchet
2026-07-02 13:08 ` [PATCH v3 1/6] mtd: rawnand: zynq: Align the layout structures with the driver namespace Bastien Curutchet
2026-07-02 13:08 ` [PATCH v3 2/6] mtd: rawnand: zynq: Add comments about very bad practices Bastien Curutchet
2026-07-02 13:08 ` [PATCH v3 3/6] mtd: rawnand: zynq: Make sure an of node is attached Bastien Curutchet
2026-07-02 13:08 ` [PATCH v3 4/6] mtd: rawnand: zynq: Do not fail the probe for no reason Bastien Curutchet
2026-07-02 13:08 ` [PATCH v3 5/6] mtd: rawnand: zynq: Fix Software ECC engine support Bastien Curutchet
2026-07-02 13:08 ` [PATCH v3 6/6] mtd: rawnand: nand_base: Don't overwrite read/write_page_raw() for soft ECC Bastien Curutchet (DAVE.eu)
2026-07-03 10:19   ` Miquel Raynal

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