From patchwork Thu Jun 5 02:22:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 4300751 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 3793ABEEA7 for ; Thu, 5 Jun 2014 02:22:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5141B202F2 for ; Thu, 5 Jun 2014 02:22:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 681A6202EC for ; Thu, 5 Jun 2014 02:22:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751886AbaFECWe (ORCPT ); Wed, 4 Jun 2014 22:22:34 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:18470 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbaFECWd (ORCPT ); Wed, 4 Jun 2014 22:22:33 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N6O00G5VBWYIFD0@mailout4.samsung.com>; Thu, 05 Jun 2014 11:22:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.113]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 83.BD.24374.254DF835; Thu, 05 Jun 2014 11:22:10 +0900 (KST) X-AuditID: cbfee68d-b7fd46d000005f36-3f-538fd4527c03 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0B.D4.07139.254DF835; Thu, 05 Jun 2014 11:22:10 +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 <0N6O00JF3BWX7S80@mmp2.samsung.com>; Thu, 05 Jun 2014 11:22:10 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: chris@printf.net, ulf.hansson@linaro.org, tgih.jun@samsung.com, devicetree@vger.kernel.org, heiko@sntech.de, dinguyen@altera.com, mark.rutland@arm.com, tushar.behera@linaro.org, Jaehoon Chung Subject: [PATCHv4 1/2] mmc: dw_mmc: replace "disable-wp" from slot's quirk to host's quirk Date: Thu, 05 Jun 2014 11:22:07 +0900 Message-id: <1401934928-7300-2-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1401934928-7300-1-git-send-email-jh80.chung@samsung.com> References: <1401934928-7300-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42JZI2JSqBt0pT/YoPGmiMWEy9sZLeYfOcdq cfzSYmaL/49es1rc+NXGanHkfz+jxdLrF5ksPty/yGzR/ncvm8XxteEOXB6teyeweayZt4bR 4861PWweN14tZPLo27KK0WP7tXnMHp83yQWwR3HZpKTmZJalFunbJXBlPGk+wFJwjKti8p31 rA2Mxzi6GDk4JARMJP71a3YxcgKZYhIX7q1n62Lk4hASWMoo0bdlMRtMza1zARDx6YwSrxYe ZoZw2pgkrr2bwwbSzSagI7H923EmEFtEQFbi558LYJOYBR4xSjxcfJ4VJCEsECPxcdFKdpCp LAKqEk+fq4CEeQVcJXaengO1TEFiziQbkDCngJtE98elYCOFgEp2rH/HCjJSQuAYu8T8UxdZ QBIsAgIS3yYfYoHolZXYdIAZ4hlJiYMrbrBMYBRewMiwilE0tSC5oDgpvchQrzgxt7g0L10v OT93EyMwJk7/e9a7g/H2AetDjMlA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Pnjvdm5C6wvhX T+Pi3j2K/OLcYQ/bvi7mn2Jwa++PhQE3w96e+NVht0k1TTRxwv1kky9vtZN+L555/4/75tlt xV9fFM22n14g9UaJpTgj0VCLuag4EQD5SpHv/QIAAA== 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. (Assume to support the one slot per a host) Signed-off-by: Jaehoon Chung --- 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, }, };