From patchwork Fri Mar 21 12:14:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 26817 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AAE5F203AB for ; Fri, 21 Mar 2014 12:15:06 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wo20sf8588155obc.2 for ; Fri, 21 Mar 2014 05:15:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=h1cAsIbUrHK4dvCsxJ7a++EZAzFpjuDa9q1nTo5v/S4=; b=fX0tBsaZRfg405kJuVJwe56+ER1mIJyn4AIBfN8PGWaZblvpXQQRLasWzHHIfDwDME apHyidDmSHRFykX6wmn0GjvmtpqTbhAZJUsk/9S0VBHYBtIoAmfxSFxVAH9yqJkzwZRo ePk75+As+UCKBwfj29QzzB/QWKDvEF/6PN2pTKyVBrqZOmUNASmMmYsVEM0grE2jVvqk w9pn1DlsgFk+Zd/WseKxw0dwQc6WsHmOhLciIMHXiPEBrJHJQW13I7r5yqoPTzMpKVH4 5CH3iWaG2f1VRP1LQ4W1bhT3nl29gyNXJxLIZ+Yc7Q4uvYKHnxiSJB64c8vH7M/Tensx xrgA== X-Gm-Message-State: ALoCoQkEEbsxcCS8PPrKkZ4DWjbyuLqk2T/w7fwRdc88iaJV/uK7ppaDwRfCsmbM4WiqDxWotTVz X-Received: by 10.182.60.195 with SMTP id j3mr5717404obr.17.1395404106188; Fri, 21 Mar 2014 05:15:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.85 with SMTP id a79ls164224qge.72.gmail; Fri, 21 Mar 2014 05:15:06 -0700 (PDT) X-Received: by 10.52.128.231 with SMTP id nr7mr11360094vdb.17.1395404106076; Fri, 21 Mar 2014 05:15:06 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id ej2si1084031veb.149.2014.03.21.05.15.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 05:15:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id la4so2470529vcb.17 for ; Fri, 21 Mar 2014 05:15:06 -0700 (PDT) X-Received: by 10.58.57.67 with SMTP id g3mr36849828veq.3.1395404106011; Fri, 21 Mar 2014 05:15:06 -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.78.9 with SMTP id i9csp25990vck; Fri, 21 Mar 2014 05:15:05 -0700 (PDT) X-Received: by 10.112.13.101 with SMTP id g5mr1676620lbc.39.1395404105011; Fri, 21 Mar 2014 05:15:05 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id x2si3896652lad.138.2014.03.21.05.15.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 05:15:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.51 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id pv20so1589147lab.38 for ; Fri, 21 Mar 2014 05:15:04 -0700 (PDT) X-Received: by 10.152.184.66 with SMTP id es2mr6521334lac.22.1395404104361; Fri, 21 Mar 2014 05:15:04 -0700 (PDT) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id tq9sm3255263lbb.10.2014.03.21.05.15.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 05:15:03 -0700 (PDT) From: Ulf Hansson To: linux-arm-kernel@lists.infradead.org, Russell King , Linus Walleij Cc: devicetree@vger.kernel.org, Ulf Hansson Subject: [PATCH 12/20] mmc: mmci: Enable MMC_CAP_CMD23 Date: Fri, 21 Mar 2014 13:14:09 +0100 Message-Id: <1395404057-27835-13-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1395404057-27835-1-git-send-email-ulf.hansson@linaro.org> References: <1395404057-27835-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 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: , This is pure software configuration, which mmci has been supporting for a while. Let's enable it as default so we can take benefit from it. Signed-off-by: Ulf Hansson --- drivers/mmc/host/mmci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 2e1d1b2..edf3cfd 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -1532,6 +1532,9 @@ static int mmci_probe(struct amba_device *dev, mmc->caps2 |= MMC_CAP2_RO_ACTIVE_HIGH; } + /* We support these capabilities. */ + mmc->caps |= MMC_CAP_CMD23; + if (variant->busy_detect) { mmci_ops.card_busy = mmci_card_busy; mmci_write_datactrlreg(host, MCI_ST_DPSM_BUSYMODE);