From patchwork Tue Jan 21 10:16:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 3516171 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8E073C02DD for ; Tue, 21 Jan 2014 10:16:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 017E820148 for ; Tue, 21 Jan 2014 10:16:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B329220145 for ; Tue, 21 Jan 2014 10:16:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754100AbaAUKQc (ORCPT ); Tue, 21 Jan 2014 05:16:32 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:12969 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754031AbaAUKQb (ORCPT ); Tue, 21 Jan 2014 05:16:31 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZQ00MBZXVI4A60@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Tue, 21 Jan 2014 19:16:30 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 67.F1.10364.EF84ED25; Tue, 21 Jan 2014 19:16:30 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-af-52de48fe6077 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 4D.73.29263.EF84ED25; Tue, 21 Jan 2014 19:16:30 +0900 (KST) Received: from [10.252.81.186] by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MZQ00HTKXVHU4F0@mmp1.samsung.com>; Tue, 21 Jan 2014 19:16:30 +0900 (KST) Message-id: <52DE4916.4090603@samsung.com> Date: Tue, 21 Jan 2014 19:16:54 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-version: 1.0 To: "linux-mmc@vger.kernel.org" Cc: Chris Ball , Ulf Hansson , Seungwon Jeon , Guennadi Liakhovetski Subject: [PATCH 1/7] mmc: core add the property for hs200 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsWyRsSkSPefx70gg22HBCwmXN7OaPF+4zwm iyP/+xktPty/yGxxfG24A6vHh49xHneu7WHzuPFqIZNH35ZVjB6fN8kFsEZx2aSk5mSWpRbp 2yVwZfw42MFcsIWtYmtbD2MD407WLkZODgkBE4nfKw+wQ9hiEhfurWfrYuTiEBJYyijxbU8z M0xR65L9zBCJRYwSffPOM0I4rxkltm66DNTOwcEroCVx6EkqSAOLgKrE/PVXGUFsNgEdie3f jjOB2KICYRJTT1xlAbF5BQQlfky+xwLSKiJgLdH8WxZkJLPAAkaJ6YubwHqFBSwl/vffAzuC GWjO/tZpbBC2vMTmNW/BDpIQWMUuse/MCUaIxQIS3yYfAhsqISArsekA1AOSEgdX3GCZwCgy C8nqWUjGzkIydgEj8ypG0dSC5ILipPQiE73ixNzi0rx0veT83E2MwHg5/e/ZhB2M9w5YH2JM Blo5kVlKNDkfGG95JfGGxmZGFqYmpsZG5pZmpAkrifOqPUoKEhJITyxJzU5NLUgtii8qzUkt PsTIxMEp1cCoIvjfajrn/schRVFL5+z5LnUxI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oDAAA= 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 caps2-mmc-hs200-1.8v and caps2-mmc-hs200-1.2v can be used to the general capability. Signed-off-by: Jaehoon Chung --- drivers/mmc/core/host.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 49bc403..96ac4c1 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -429,6 +429,10 @@ int mmc_of_parse(struct mmc_host *host) host->pm_caps |= MMC_PM_KEEP_POWER; if (of_find_property(np, "enable-sdio-wakeup", &len)) host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; + if (of_find_property(np, "caps2-mmc-hs200-1_8v", NULL)) + host->caps2 |= MMC_CAP2_HS200_1_8V_SDR; + if (of_find_property(np, "caps2-mmc-hs200-1_2v", NULL)) + host->caps2 |= MMC_CAP2_HS200_1_2V_SDR; return 0;