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: 3874021 Return-Path: X-Original-To: patchwork-linux-arm@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 B83CE9F370 for ; Fri, 21 Mar 2014 12:56:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1EAD2025B for ; Fri, 21 Mar 2014 12:56:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 07E3C20212 for ; Fri, 21 Mar 2014 12:56:55 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQyOR-00080Q-ES; Fri, 21 Mar 2014 12:17:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQyNg-0003SU-AG; Fri, 21 Mar 2014 12:17:00 +0000 Received: from mail-lb0-f171.google.com ([209.85.217.171]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQyMA-0003GM-B1 for linux-arm-kernel@lists.infradead.org; Fri, 21 Mar 2014 12:15:27 +0000 Received: by mail-lb0-f171.google.com with SMTP id w7so1583148lbi.2 for ; Fri, 21 Mar 2014 05:15:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=h1cAsIbUrHK4dvCsxJ7a++EZAzFpjuDa9q1nTo5v/S4=; b=Lho+FkXwqhBHDBkUlFJvTfOUajo740EwNpVP+HlTn4JMUge3803KxY0hTaYDaECtss 5kFpzKN0TnKGFP24QEuq2ng7tXXlBJoA3322AtVxzqYZKUdZqU5V6tJNaWxGmSKT/Sqf 9z1flvuO0bagQN5x0kyF1HWDfslYB+SedRFKwx/iC/EgFyC+nIae9QVEY5L9W/UXvJYH WeBezv0IMG97HaFaTfDbTTgfjWULwOvXRPzvofNj3oK+gzo7XCrYKjE15cIVGtTWMETm p8PxjDSyKJLqN0dOLXECQn+SHdvdAjHQ7FHepBigMKbMxPzoeTDw5eWjB72cB5fq4iPw Zulw== X-Gm-Message-State: ALoCoQnNh0Zp5dCN41J2VtGmijMbSgE/lOTQBL3InxvzbBtPQmRncNkarR/3nJHwekmbYx9rAzgz 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140321_081526_569705_31A81765 X-CRM114-Status: GOOD ( 10.18 ) X-Spam-Score: -2.6 (--) Cc: devicetree@vger.kernel.org, Ulf Hansson X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 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);