From patchwork Fri Nov 25 06:52:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9446541 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 837086071C for ; Fri, 25 Nov 2016 06:52:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7250B276AE for ; Fri, 25 Nov 2016 06:52:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63E7427E63; Fri, 25 Nov 2016 06:52:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 782A3276AE for ; Fri, 25 Nov 2016 06:52:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752747AbcKYGwU (ORCPT ); Fri, 25 Nov 2016 01:52:20 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:49236 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572AbcKYGwT (ORCPT ); Fri, 25 Nov 2016 01:52:19 -0500 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OH602RXOR359E50@mailout2.samsung.com>; Fri, 25 Nov 2016 15:52:17 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-df-5837dfa16a19 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id FB.11.25310.1AFD7385; Fri, 25 Nov 2016 15:52:17 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OH600BE4R343260@mmp1.samsung.com>; Fri, 25 Nov 2016 15:52:17 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, adrian.hunter@intel.com, Jaehoon Chung Subject: [PATCH 1/2] mmc: core: add DT binding for CMD23 Date: Fri, 25 Nov 2016 15:52:14 +0900 Message-id: <20161125065215.10833-1-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsVy+t9jAd2F980jDJr+cFucfLKGzWL+kXOs Fjd+tbFaHPnfz2ix9PpFJovWvUfYLY6vDXdg91gzbw2jx+I9L5k8Nq3qZPO4c20Pm0ffllWM Hp83yQWwRbnZZKQmpqQWKaTmJeenZOal2yqFhrjpWigp5CXmptoqRej6hgQpKZQl5pQCeUYG aMDBOcA9WEnfLsEtY9b6zewFU9kqnixdwdzAOIO1i5GTQ0LARGLCzIlQtpjEhXvr2boYuTiE BJYySpzs28wC4fxglLh3aiIbSBWbgI7E9m/HmUBsEQFZiZ9/LoB1MIN0NMxfwwySEBawkJiz +gBYEYuAqsSe5lZ2EJtXwFpi1ZSTUOvkJS5cPcUygZF7ASPDKkaJ1ILkguKk9FzDvNRyveLE 3OLSvHS95PzcTYzgcH0mtYPx4C73Q4wCHIxKPLwT0s0jhFgTy4orcw8xSnAwK4nwPr4GFOJN SaysSi3Kjy8qzUktPsRoCnTARGYp0eR8YCzllcQbmpibmBsbWJhbWpoYKYnzNs5+Fi4kkJ5Y kpqdmlqQWgTTx8TBKdXAyHJhTXj9xeNdmntlHl//GKup58o5d1/p0/V7Flo9PPXgeHh7qW6H JJvR3+7Hby4HHJ547OGOZNVDE5/t2HW6IKaidl6JoP0Fu/Lg1CUmZ6Q2GhWHmhu/5bhlZSR4 QC7HhLG4M/6sfZty2P4/7wRL5umL19/YxLaZ9dCcfaZX9uTp1JVu77ujr8RSnJFoqMVcVJwI AD7NyFltAgAA X-MTR: 20000000000000000@CPGS Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Provide the option to configure one type of multiple block read/wrte transatction (CMD23 - it's optional.) Signed-off-by: Jaehoon Chung --- drivers/mmc/core/host.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 98f25ff..9bdc369 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -321,6 +321,8 @@ int mmc_of_parse(struct mmc_host *host) host->caps2 |= MMC_CAP2_NO_SD; if (of_property_read_bool(np, "no-mmc")) host->caps2 |= MMC_CAP2_NO_MMC; + if (of_property_read_bool(np, "cap-mmc-cmd23")) + host->caps |= MMC_CAP_CMD23; host->dsr_req = !of_property_read_u32(np, "dsr", &host->dsr); if (host->dsr_req && (host->dsr & ~0xffff)) {