From patchwork Thu Jun 5 04:43:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 4301991 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 74169BEEA7 for ; Thu, 5 Jun 2014 04:44:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 56068201BC for ; Thu, 5 Jun 2014 04:44:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D3E45201BA for ; Thu, 5 Jun 2014 04:44:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753360AbaFEEoI (ORCPT ); Thu, 5 Jun 2014 00:44:08 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:65075 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753035AbaFEEoE (ORCPT ); Thu, 5 Jun 2014 00:44:04 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N6O00INDIHDW070@mailout2.samsung.com>; Thu, 05 Jun 2014 13:44:01 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.114]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 54.0D.19452.195FF835; Thu, 05 Jun 2014 13:44:01 +0900 (KST) X-AuditID: cbfee68e-b7fb96d000004bfc-41-538ff591ac1c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C8.D0.07139.195FF835; Thu, 05 Jun 2014 13:44:01 +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 <0N6O006IHIHCK130@mmp2.samsung.com>; Thu, 05 Jun 2014 13:44:01 +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: [PATCHv5 1/2] mmc: dw_mmc: replace "disable-wp" from slot's quirk to host's quirk Date: Thu, 05 Jun 2014 13:43:58 +0900 Message-id: <1401943439-8146-2-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1401943439-8146-1-git-send-email-jh80.chung@samsung.com> References: <1401943439-8146-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42JZI2JSpDvxa3+wwZTV4hYTLm9ntJh/5Byr xfFLi5kt/j96zWpx41cbq8WR//2MFkuvX2Sy+HD/IrNF+9+9bBbH14Y7cHm07p3A5rFm3hpG jzvX9rB53Hi1kMmjb8sqRo/t1+Yxe3zeJBfAHsVlk5Kak1mWWqRvl8CV8enpO6aCN1wV/ecX MDYwPuPoYuTkkBAwkTg3/wIThC0mceHeerYuRi4OIYGljBIH2s+wwxSdPvSQESIxnVHi9MPT TBBOG5PErt6VYFVsAjoS278dBxslIiAr8fPPBbBRzAKPGCUeLj7PCpIQFoiRWHCljRnEZhFQ lfh3fR4LiM0r4CpxpPU9UA0H0DoFiTmTbEDCnAJuEt9vfAObKQRU8vvTBHaQmRICh9gl1rw+ ATVHQOLb5EMsEL2yEpsOMENcLSlxcMUNlgmMwgsYGVYxiqYWJBcUJ6UXGekVJ+YWl+al6yXn 525iBEbG6X/P+nY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T3p9yXimdovZ1tvifoleVDbLb FnspJlj9eHeEb7Ou9NendVsO7K9stE3nfvhlwf4r3YwNRyedCrxeLZzAyiKkbTTNVfp4knbm ewOx4qV9nmtSXJVYijMSDbWYi4oTAcXKnHz/AgAA 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 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, }, };