public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@nokia.com>
To: jens.axboe@oracle.com
Cc: hch@lst.de, Andrew Morton <akpm@linux-foundation.org>,
	Kyungmin Park <kmpark@infradead.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Madhusudhan Chikkature <madhu.cr@ti.com>
Subject: [PATCH V2 0/4] Add MMC erase and secure erase
Date: Sun, 13 Jun 2010 13:01:34 +0300	[thread overview]
Message-ID: <4C14AC7E.6030308@nokia.com> (raw)

Hi

Add ability to do MMC erase and secure erase operations from userspace,
using the BLKDISCARD ioctl and a newly created BLKSECDISCARD ioctl.

Changes from V1

- use discard I/O requests instead of implementing BLKDISCARD in mmc_block
- do not validate erase size for MMC erases, instead round to erase size
- rename MMC max_erase to pref_erase and expose it through sysfs as
"preferred_erase_size"

Adrian Hunter (4):
      block: Add BLKSECDISCARD
      mmc: Add erase, secure erase, trim and secure trim operations
      mmc_block: Add discard and secure discard support
      omap_hsmmc: Add erase capability

 block/compat_ioctl.c          |    1 +
 block/ioctl.c                 |    5 +
 drivers/mmc/card/block.c      |  125 +++++++++++++++-
 drivers/mmc/card/queue.c      |   16 ++-
 drivers/mmc/core/core.c       |  346 +++++++++++++++++++++++++++++++++++++++++
 drivers/mmc/core/core.h       |    2 +
 drivers/mmc/core/mmc.c        |   47 ++++++-
 drivers/mmc/core/sd.c         |   82 ++++++++++
 drivers/mmc/core/sd_ops.c     |   48 ++++++
 drivers/mmc/core/sd_ops.h     |    1 +
 drivers/mmc/host/omap_hsmmc.c |   13 ++-
 include/linux/fs.h            |    1 +
 include/linux/mmc/card.h      |   19 +++
 include/linux/mmc/core.h      |   19 +++
 include/linux/mmc/host.h      |    1 +
 include/linux/mmc/mmc.h       |   24 ++-
 include/linux/mmc/sd.h        |    5 +
 17 files changed, 742 insertions(+), 13 deletions(-)


Regards
Adrian

             reply	other threads:[~2010-06-13 10:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-13 10:01 Adrian Hunter [this message]
2010-06-13 10:38 ` [PATCH V2 0/4] Add MMC erase and secure erase Adrian Hunter
2010-06-14  8:09 ` Christoph Hellwig
2010-06-14 11:10   ` Adrian Hunter
2010-06-14 11:21     ` Christoph Hellwig

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=4C14AC7E.6030308@nokia.com \
    --to=adrian.hunter@nokia.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@lst.de \
    --cc=jens.axboe@oracle.com \
    --cc=kmpark@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=madhu.cr@ti.com \
    /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