[PATCH v3 0/2] dfu: mtd: mark bad the MTD block on erase error

Patrick Delaunay patrick.delaunay at foss.st.com
Mon Jun 5 09:52:06 CEST 2023


V3 for http://patchwork.ozlabs.org/project/uboot/list/?series=357878
after remarks and missing impact after comts
d9fa61f54e7f9a ("mtd: nand: Show reserved block in chip.erase")
and
cfb82f7c123e4 ("mtd: nand: Mark reserved blocks")

Patrick

Changes in v3:
- Split serie with trace fix and support of bad block in MTD erase
- Fix trace for "bbt reserved" when mtd_block_isbad return 2

Changes in v2:
- fix mtd_block_isbad offset parameter for erase check
- Add trace when bad block are skipped in erase loop
- Add remaining byte in trace "Limit reached"

Patrick Delaunay (2):
  dfu: mtd: fix the trace when limit is reached
  dfu: mtd: mark bad the MTD block on erase error

 drivers/dfu/dfu_mtd.c | 34 ++++++++++++++++++++++++----------
 1 file changed, 24 insertions(+), 10 deletions(-)

-- 
2.25.1



More information about the U-Boot mailing list