From patchwork Mon May 12 11:14:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 4158561 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5EC1D9F387 for ; Mon, 12 May 2014 11:14:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A4058202B4 for ; Mon, 12 May 2014 11:14:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C87A92026C for ; Mon, 12 May 2014 11:14:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754880AbaELLOk (ORCPT ); Mon, 12 May 2014 07:14:40 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:43656 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754647AbaELLOj (ORCPT ); Mon, 12 May 2014 07:14:39 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5G00INKKKEQ980@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 12 May 2014 20:14:38 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 38.AD.11120.41DA0735; Mon, 12 May 2014 20:14:38 +0900 (KST) X-AuditID: cbfee68f-b7eff6d000002b70-1c-5370ad14e837 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 8E.70.27725.41DA0735; Mon, 12 May 2014 20:14:28 +0900 (KST) Received: from localhost.localdomain ([10.252.81.186]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5G00FNEKJVNB30@mmp2.samsung.com>; Mon, 12 May 2014 20:14:28 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: chris@printf.net, ulf.hansson@linaro.org, tgih.jun@samsung.com, zhangfei.gao@linaro.org, dinguyen@altera.com, Jaehoon Chung Subject: [PATCH 3/5] mmc: dw_mmc-exynos: add the MMC_CAP_ERASE by default. Date: Mon, 12 May 2014 20:14:14 +0900 Message-id: <1399893256-7071-4-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1399893256-7071-1-git-send-email-jh80.chung@samsung.com> References: <1399893256-7071-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKLMWRmVeSWpSXmKPExsWyRsSkUFdubUGwwd75GhYTLm9ntDh+aTGz xY1fbawWR/73M1p8uH+R2eL42nCLm2susDuwe7TuncDmcefaHjaPG68WMnn0bVnF6PF5k1wA axSXTUpqTmZZapG+XQJXxr55y9kKPrBXdK9YxtLAeJ2ti5GTQ0LARGLb30vMELaYxIV764Hi XBxCAksZJU79f8sIU9R++yFUYjqjxLKzD1ghnDYmifVbpoBVsQnoSGz/dpwJxBYRkJX4+ecC WAezwBxGiR+z+sB2CAt4SWyb+J29i5GDg0VAVWLW2xiQMK+Aq8SiY18ZQcISAgoScybZgIQ5 Bdwk5s+cyQpiCwGVvPi7nwVkpITAInaJE7u2ge1iERCQ+Db5EAtEr6zEpgNQ30hKHFxxg2UC o/ACRoZVjKKpBckFxUnpRcZ6xYm5xaV56XrJ+bmbGIFBfvrfs/4djHcPWB9iTAYaN5FZSjQ5 HxgleSXxhsZmRhamJqbGRuaWZqQJK4nz3n+YFCQkkJ5YkpqdmlqQWhRfVJqT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R1OJpTgj0VCLuag4EQBcGD9U 5QIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To use the erase command, add the MMC_CAP_ERASE capability by default. Signed-off-by: Jaehoon Chung --- drivers/mmc/host/dw_mmc-exynos.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index 0fbc53a..46fafd8 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -386,10 +386,11 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode, /* Common capabilities of Exynos4/Exynos5 SoC */ static unsigned long exynos_dwmmc_caps[4] = { - MMC_CAP_1_8V_DDR | MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23, - MMC_CAP_CMD23, - MMC_CAP_CMD23, - MMC_CAP_CMD23, + MMC_CAP_1_8V_DDR | MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23 | + MMC_CAP_ERASE, + MMC_CAP_CMD23 | MMC_CAP_ERASE, + MMC_CAP_CMD23 | MMC_CAP_ERASE, + MMC_CAP_CMD23 | MMC_CAP_ERASE, }; static const struct dw_mci_drv_data exynos_drv_data = {