]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: flash_erase: Add flash erase chip
authorLarisa Ileana Grigore <larisa.grigore@nxp.com>
Fri, 23 Apr 2021 15:07:04 +0000 (18:07 +0300)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 5 May 2021 06:29:50 +0000 (08:29 +0200)
commit2ca0bbf296d6f7ce51b8255347c7fd08afa33651
tree3eeaad477971d8bb1764c46be4b3f67e7e87afdb
parent1709a628dfc8983f7718e978676cafc3c0399a70
mtd-utils: flash_erase: Add flash erase chip

Some flash types support full erase chip command which can reduce the
flash erase time. Try first to erase the entire flash and fall back
to the old method if the operation fails.

Signed-off-by: Larisa Ileana Grigore <larisa.grigore@nxp.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
include/libmtd.h
lib/libmtd.c
misc-utils/flash_erase.c