Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753480Ab0FMKig (ORCPT ); Sun, 13 Jun 2010 06:38:36 -0400 Received: from smtp.nokia.com ([192.100.105.134]:56471 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753290Ab0FMKif (ORCPT ); Sun, 13 Jun 2010 06:38:35 -0400 Message-ID: <4C14B514.4040405@nokia.com> Date: Sun, 13 Jun 2010 13:38:12 +0300 From: Adrian Hunter User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Jens Axboe CC: "hch@lst.de" , Andrew Morton , Kyungmin Park , LKML , "linux-mmc@vger.kernel.org" , Madhusudhan Chikkature Subject: [PATCH V2 0/4] Add MMC erase and secure erase References: <4C14AC7E.6030308@nokia.com> In-Reply-To: <4C14AC7E.6030308@nokia.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Jun 2010 10:38:13.0605 (UTC) FILETIME=[8687A950:01CB0AE4] X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1744 Lines: 49 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/