public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Larisa Ileana Grigore <larisa.grigore@nxp.com>
To: linux-mtd@lists.infradead.org
Subject: [PATCH] Add full flash erase support in mtd-utils
Date: Fri, 23 Apr 2021 18:07:03 +0300	[thread overview]
Message-ID: <20210423150704.7248-1-larisa.grigore@nxp.com> (raw)

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


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

             reply	other threads:[~2021-04-23 15:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 15:07 Larisa Ileana Grigore [this message]
2021-04-23 15:07 ` [PATCH 1/1] mtd-utils: flash_erase: Add flash erase chip Larisa Ileana Grigore
2021-04-23 16:54   ` Michael Walle
2021-05-05  6:50   ` David Oberhollenzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210423150704.7248-1-larisa.grigore@nxp.com \
    --to=larisa.grigore@nxp.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox