From patchwork Fri Jun 13 04:31:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 4346771 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 F129FBEEAA for ; Fri, 13 Jun 2014 04:31:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0204F20263 for ; Fri, 13 Jun 2014 04:31:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 05AC32024C for ; Fri, 13 Jun 2014 04:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751349AbaFMEbM (ORCPT ); Fri, 13 Jun 2014 00:31:12 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:17083 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750855AbaFMEbL (ORCPT ); Fri, 13 Jun 2014 00:31:11 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7300FTGB7X1WC0@mailout2.samsung.com>; Fri, 13 Jun 2014 13:31:09 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 0C.DB.13369.C8E7A935; Fri, 13 Jun 2014 13:31:08 +0900 (KST) X-AuditID: cbfee690-b7fb56d000003439-5e-539a7e8c27b5 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 94.7B.08203.C8E7A935; Fri, 13 Jun 2014 13:31:08 +0900 (KST) Received: from localhost.localdomain ([10.252.81.186]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N7300LW1B7WWB10@mmp2.samsung.com>; Fri, 13 Jun 2014 13:31:08 +0900 (KST) From: Jaehoon Chung To: linux-mmc Cc: Chris Ball , Ulf Hansson , tgih.jun@samsung.com, devicetree@vger.kernel.org, "Heiko St.bner" , dinguyen@altera.com, Mark Rutland , Tushar Behera , Jaehoon Chung Subject: [PATCHv7 1/2] mmc: dw_mmc: replace "disable-wp" from slot's quirk to host's quirk Date: Fri, 13 Jun 2014 13:31:06 +0900 Message-id: <1402633867-25155-2-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1402633867-25155-1-git-send-email-jh80.chung@samsung.com> References: <1402633867-25155-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42JZI2JSpNtTNyvY4MU+a4sJl7czWsw/co7V 4vilxcwW/x+9ZrW48auN1eLI/35Gi6XXLzJZfLh/kdmi/e9eNovja8MduDxa905g81gzbw2j x51re9g8brxayOTRt2UVo8f2a/OYPT5vkgtgj+KySUnNySxLLdK3S+DK+LXxMXtBG3fFz+41 jA2Mvzi6GDk5JARMJO6fXMoGYYtJXLi3Hsjm4hASWMoosa1tKhtMUf/XM8wQiemMEvcfPoFy 2pgkek+/ZgGpYhPQkdj+7TgTiC0ioCnRuX0l2ChmgQ1MEjem3WTsYuTgEBaIkWieJgRSwyKg KnFu5RRmEJtXwE1i5YYvrCAlEgIKEnMm2YCEOQXcJWY/+QtWIgRUsv3MNbC9EgLH2CUW/5vP DDFHQOLb5EMsEL2yEpsOMEMcLSlxcMUNlgmMwgsYGVYxiqYWJBcUJ6UXmegVJ+YWl+al6yXn 525iBMbF6X/PJuxgvHfA+hBjMtC4icxSosn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Po K425M1ZzbbVVO1RTbt8nV/D16GfvtIjI0ols9S9Y/XmV2ip2f2HT8JY58OBN1K05f1gU2p3P idta35kT5r7eqEiJpTgj0VCLuag4EQC7idQx/gIAAA== 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 Replaced the "disable-wp" into host's quirks. (Because the slot-node is removed at dt-file.) Signed-off-by: Jaehoon Chung --- Changelog V6/V7: -None Changelog V5: - Modify comment. Changelog V4: - Rename Subject "[PATCHv3 2/4] mmc: dw_mmc: use the __mmc_of_parse to parse the slot node" - Replace the "disable-wp" into host's quirks, according to remove the slot-node at dt-file. Changelog V3: - Fix typo. - Maintained the dw_mci_of_quirks(). Changelog V2: - None drivers/mmc/host/dw_mmc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 1ac227c..99fc939 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -2006,12 +2006,7 @@ static struct device_node *dw_mci_of_find_slot_node(struct device *dev, u8 slot) static struct dw_mci_of_slot_quirks { char *quirk; int id; -} of_slot_quirks[] = { - { - .quirk = "disable-wp", - .id = DW_MCI_SLOT_QUIRK_NO_WRITE_PROTECT, - }, -}; +} of_slot_quirks[] = {}; static int dw_mci_of_get_slot_quirks(struct device *dev, u8 slot) { @@ -2238,6 +2233,9 @@ static struct dw_mci_of_quirks { { .quirk = "broken-cd", .id = DW_MCI_QUIRK_BROKEN_CARD_DETECTION, + }, { + .quirk = "disable-wp", + .id = DW_MCI_SLOT_QUIRK_NO_WRITE_PROTECT, }, };