From patchwork Thu May 23 13:13:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 17131 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9CFEB2395B for ; Thu, 23 May 2013 13:15:31 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id d1sf4200746qcz.0 for ; Thu, 23 May 2013 06:14:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=54JJXrwqsgmaUNu3xnYxnGpvS42A7h5Tr7XTN9G7j0s=; b=F6yLpxHt0CfIGg00bs4Zyedi5EB+RyxDeoVnj1RjeHr9+DJm3FbfQSRu+QD1hAdPYH EZsWUcDtqy94rqysXnF+VBTBNab/8ifD9QA81V9dxcvVSyYcnQLFy43QmQJGB7taMK5l 6fTHW/tsXW3wzku/YZjMZgaLC6OWgHIoKvtZisVbkyLEQZwvV+hnHH5YAIfDOF0tEBpX X8H8vH0HuM0zXxKDw6ZfrorVoeIB960WoqAc/cqvy3Ie0yJjvRhjcpiKrqCIXaAm1Ko6 SHghg6e+NEwp1RW0rDWPvqLvx+1qSgbmwXMcoNzts8nNlbXD9kYcbI/C12RYKbL1xcNj 97/w== X-Received: by 10.224.53.198 with SMTP id n6mr3104278qag.2.1369314876431; Thu, 23 May 2013 06:14:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.16 with SMTP id q16ls1398618qef.46.gmail; Thu, 23 May 2013 06:14:36 -0700 (PDT) X-Received: by 10.52.230.164 with SMTP id sz4mr4495862vdc.118.1369314876241; Thu, 23 May 2013 06:14:36 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id sc6si6315381vdc.21.2013.05.23.06.14.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 May 2013 06:14:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id id13so2146977vcb.23 for ; Thu, 23 May 2013 06:14:36 -0700 (PDT) X-Received: by 10.220.238.4 with SMTP id kq4mr5198340vcb.73.1369314876109; Thu, 23 May 2013 06:14:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp50848vcs; Thu, 23 May 2013 06:14:35 -0700 (PDT) X-Received: by 10.14.87.9 with SMTP id x9mr31678134eee.3.1369314873547; Thu, 23 May 2013 06:14:33 -0700 (PDT) Received: from eu1sys200aog117.obsmtp.com (eu1sys200aog117.obsmtp.com [207.126.144.143]) by mx.google.com with SMTP id r44si15745834eep.235.2013.05.23.06.14.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 23 May 2013 06:14:33 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.143 is neither permitted nor denied by best guess record for domain of ulf.hansson@stericsson.com) client-ip=207.126.144.143; Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob117.postini.com ([207.126.147.11]) with SMTP ID DSNKUZ4WHtEyMRFmhMwUEzWEfvWEN7Bs6S81@postini.com; Thu, 23 May 2013 13:14:33 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 10E98DB; Thu, 23 May 2013 13:14:03 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 3AF60794; Thu, 23 May 2013 13:14:03 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 6E87B24C2C0; Thu, 23 May 2013 15:13:55 +0200 (CEST) Received: from steludxu1397.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Thu, 23 May 2013 15:14:02 +0200 From: Ulf Hansson To: , Linus Walleij , Srinidhi Kasagar Cc: Lee Jones , Arnd Bergmann , Ulf Hansson Subject: [PATCH 4/6] ARM: ux500: Enable support for discard for MMC/SD Date: Thu, 23 May 2013 15:13:48 +0200 Message-ID: <1369314830-3727-5-git-send-email-ulf.hansson@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1369314830-3727-1-git-send-email-ulf.hansson@stericsson.com> References: <1369314830-3727-1-git-send-email-ulf.hansson@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkum0ZpelU32iuNjQCxsyoOF001XT8QRs7zyZTTYZf7dwC6lGYLaTjcve8HIs07WjPqtapn X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ulf Hansson By enabling MMC_CAP_ERASE for the SD/MMC devices the mmc block layer will now act on DISCARD requests. Signed-off-by: Ulf Hansson --- arch/arm/mach-ux500/board-mop500-sdi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c index 9bb3ca5..3c07f55 100644 --- a/arch/arm/mach-ux500/board-mop500-sdi.c +++ b/arch/arm/mach-ux500/board-mop500-sdi.c @@ -55,7 +55,8 @@ struct mmci_platform_data mop500_sdi0_data = { .f_max = 100000000, .capabilities = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED | - MMC_CAP_MMC_HIGHSPEED, + MMC_CAP_MMC_HIGHSPEED | + MMC_CAP_ERASE, .gpio_wp = -1, .sigdir = MCI_ST_FBCLKEN | MCI_ST_CMDDIREN | @@ -146,6 +147,7 @@ struct mmci_platform_data mop500_sdi2_data = { .capabilities = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA | MMC_CAP_MMC_HIGHSPEED | + MMC_CAP_ERASE | MMC_CAP_CMD23, .gpio_cd = -1, .gpio_wp = -1, @@ -185,6 +187,7 @@ struct mmci_platform_data mop500_sdi4_data = { .capabilities = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA | MMC_CAP_MMC_HIGHSPEED | + MMC_CAP_ERASE | MMC_CAP_CMD23, .gpio_cd = -1, .gpio_wp = -1,