Skip to content

Add MMC erase and secure erase V4

Adrian Hunter linux-mmc lkml 4 versions – In review

Get series with b4
b4 am 20100707111716.24979.68940.sendpatchset@ahunter-work.research.nokia.com

Versions newest first · linked by author and title

  1. v4 Latest5 patches 5 repliesIn review
  2. v35 patches 4 repliesSuperseded
  3. v2 posting 2/20 of 4 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v2 posting 1/24 patches5 repliesSuperseded

Changes in v4 from the cover letter

- rebased on mmotm
- added SD/MMC device attribute documentation to 'mmc: Add erase, secure erase, trim and secure trim operations' patch

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mmc: Add erase, secure erase, trim and secure trim operationsDocumentation/00-INDEX Documentation/mmc/00-INDEX Documentation/mmc/mmc-dev-attrs.txt +11 more+650 -83 replies
2/5mmc_block: Add discard supportdrivers/mmc/card/block.c drivers/mmc/card/queue.c+55 -30 replies
3/5omap_hsmmc: Add erase capabilitydrivers/mmc/host/omap_hsmmc.c+10 -30 replies
4/5block: Add secure discardblock/blk-core.c block/blk-lib.c block/compat_ioctl.c +6 more+45 -75 replies
5/5mmc_block: Add support for secure discarddrivers/mmc/card/block.c drivers/mmc/card/queue.c+46 -30 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchBen Gardiner
1/5R-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH V4 0/5] Add MMC erase and secure erase V4

Hi

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

This is version 4 of these patches.

Changes from V3

- rebased on mmotm
- added SD/MMC device attribute documentation to 'mmc: Add erase, secure erase, trim and secure trim operations' patch

Changes from V2

- move the addition of BLKSECDISCARD to a separate patch and implement it using I/O requests
- move the MMC support of secure discard to a separate patch and support the secure discard I/O request

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 (5):
mmc: Add erase, secure erase, trim and secure trim operations
mmc_block: Add discard support
omap_hsmmc: Add erase capability
block: Add secure discard
mmc_block: Add support for secure discard

 Documentation/00-INDEX              |    2 +
 Documentation/mmc/00-INDEX          |    4 +
 Documentation/mmc/mmc-dev-attrs.txt |   56 ++++++
 block/blk-core.c                    |    5 +-
 block/blk-lib.c                     |    6 +
 block/compat_ioctl.c                |    1 +
 block/elevator.c                    |    6 +
 block/ioctl.c                       |   15 +-
 drivers/mmc/card/block.c            |   82 ++++++++-
 drivers/mmc/card/queue.c            |   19 ++-
 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/bio.h                 |    2 +
 include/linux/blkdev.h              |    7 +-
 include/linux/fs.h                  |    2 +
 include/linux/mmc/card.h            |   19 ++
 include/linux/mmc/core.h            |   19 ++
 include/linux/mmc/host.h            |    1 +
 include/linux/mmc/mmc.h             |   26 ++-
 include/linux/mmc/sd.h              |    5 +
 kernel/trace/blktrace.c             |    8 +
 26 files changed, 803 insertions(+), 21 deletions(-)
 create mode 100644 Documentation/mmc/00-INDEX
 create mode 100644 Documentation/mmc/mmc-dev-attrs.txt

Regards
Adrian