[PATCH] Add full flash erase support in mtd-utils
Larisa Ileana Grigore
larisa.grigore at nxp.com
Fri Apr 23 16:07:03 BST 2021
Some flash types support full erase chip command but there was no
support for it in mtd-utils. The full erase chip command can reduce the
flash erase time significantly. The patch will try first to erase the
entire flash and fall back to the old method if the operation fails.
Larisa Ileana Grigore (1):
mtd-utils: flash_erase: Add flash erase chip
include/libmtd.h | 15 +++++++
lib/libmtd.c | 26 ++++++++---
misc-utils/flash_erase.c | 95 ++++++++++++++++++++++++++++++----------
3 files changed, 106 insertions(+), 30 deletions(-)
--
2.17.1
More information about the linux-mtd
mailing list