From patchwork Mon Jun 5 04:41:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9765485 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 C774860393 for ; Mon, 5 Jun 2017 04:41:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB46627E71 for ; Mon, 5 Jun 2017 04:41:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B02F927FA5; Mon, 5 Jun 2017 04:41:47 +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 372D327E71 for ; Mon, 5 Jun 2017 04:41:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbdFEElp (ORCPT ); Mon, 5 Jun 2017 00:41:45 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:62593 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751270AbdFEEll (ORCPT ); Mon, 5 Jun 2017 00:41:41 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20170605044139epoutp048d4b5f30a8c2ce4a50051c60bd96ee5b~FIA7-QoeZ0883808838epoutp04j; Mon, 5 Jun 2017 04:41:39 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.40.66]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170605044139epcas1p24d6c656bde3cb1e12dafff99a669dcb8~FIA7g0Y-n2718327183epcas1p2l; Mon, 5 Jun 2017 04:41:39 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 1C.7A.03717.201E4395; Mon, 5 Jun 2017 13:41:38 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170605044137epcas1p408ff8655bcf8084e758f358ff0ed632e~FIA5hFy1l1505815058epcas1p4S; Mon, 5 Jun 2017 04:41:37 +0000 (GMT) X-AuditID: b6c32a39-f790c6d000000e85-0b-5934e1025fea Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id DF.E1.02179.101E4395; Mon, 5 Jun 2017 13:41:37 +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 <0OR200A0S51CWR90@mmp1.samsung.com>; Mon, 05 Jun 2017 13:41:37 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, shawn.lin@rock-chips.com, Jaehoon Chung Subject: [PATCH 1/6] mmc: dw_mmc: deprecated the "num-slots" property Date: Mon, 05 Jun 2017 13:41:30 +0900 Message-id: <20170605044135.18304-2-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 In-reply-to: <20170605044135.18304-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNKsWRmVeSWpSXmKPExsWy7bCmni7TQ5NIg0+H+Cxu/GpjtTjyv5/R 4s6T9awWx9eGO7B43Lm2h83j76z9LB59W1YxenzeJBfAEpVqk5GamJJapJCal5yfkpmXbqvk HRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQO0UUm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QsBEYs/k/8wQtpjEhXvr2boYuTiEBLYxSvzctZ8ZwvnBKPFhznMmkCo2AR2J7d+O g9kiArISP/9cYAOxmQXiJBYd/ckOYgsLuEo8fNgBVsMioCrx68MVFhCbV8Ba4mnfPxaIbfIS C88fAavhFLCRWH33EZgtBFRzpb2JaQIj7wJGhlWMXKkFxbnpucVGBYabGIHBuO2wlv8Oxh9n ow8xCnAwKvHwSmSaRAqxJpYVV+YeYpTgYFYS4S2+DhTiTUmsrEotyo8vKs1JLT7EaAp0ykRm KdHkfGCk5JXEG5pYGpkYmJkZGhkYmymJ804I/BIhJJCeWJKanZpakFoE08fEwSnVwCgvckz5 3IGeKdtXV5yNNXkxYUdBUMZT/yX8WvdfpX85KPT0SPJf45ylM/d3lEXqRnUadkXyLHB3k393 IDibp+Nnv2Fawo/evKRZQmKZkfJcfCcCD5n3Kosr/j0nlbL32e7s4lJ/1cYDanZ35WfXyLCd cE08+/XMSosLj/Y2H9cx2mZT05u0QomlOCPRUIu5qDgRAHFvREpcAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170605044137epcas1p408ff8655bcf8084e758f358ff0ed632e X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170605044137epcas1p408ff8655bcf8084e758f358ff0ed632e X-RootMTR: 20170605044137epcas1p408ff8655bcf8084e758f358ff0ed632e References: <20170605044135.18304-1-jh80.chung@samsung.com> 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 dwmmc controller is supporting only one slot per a IP. Even though DWMMC IP is provided the multiple slot, but there is no usage in real world. In mmc subsystem, not allow the multiple slot concept. Then "num-slots" property is deprecated. Signed-off-by: Jaehoon Chung --- drivers/mmc/host/dw_mmc.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 4a0841c..a66edd0 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -2973,7 +2973,8 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host) } /* find out number of slots supported */ - device_property_read_u32(dev, "num-slots", &pdata->num_slots); + if (device_property_read_u32(dev, "num-slots", &pdata->num_slots)) + dev_info(dev, "'num-slots' was deprecated.\n"); if (device_property_read_u32(dev, "fifo-depth", &pdata->fifo_depth)) dev_info(dev, @@ -3203,18 +3204,12 @@ int dw_mci_probe(struct dw_mci *host) if (ret) goto err_dmaunmap; - if (host->pdata->num_slots) - host->num_slots = host->pdata->num_slots; - else - host->num_slots = 1; - - if (host->num_slots < 1 || - host->num_slots > SDMMC_GET_SLOT_NUM(mci_readl(host, HCON))) { - dev_err(host->dev, - "Platform data must supply correct num_slots.\n"); - ret = -ENODEV; - goto err_clk_ciu; - } + /* + * Even though dwmmc IP is provided the multiple slots, + * there is no use case in mmc subsystem. + * dwmmc host controller needs to initialize the one slot per an IP. + */ + host->num_slots = 1; /* * Enable interrupts for command done, data over, data empty,