From patchwork Mon Jun 9 03:34:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 4317551 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5C7FC9F357 for ; Mon, 9 Jun 2014 03:34:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 88DFB2016C for ; Mon, 9 Jun 2014 03:34:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4BB6A20173 for ; Mon, 9 Jun 2014 03:34:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754185AbaFIDeV (ORCPT ); Sun, 8 Jun 2014 23:34:21 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:64940 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753968AbaFIDeT (ORCPT ); Sun, 8 Jun 2014 23:34:19 -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 <0N6V006ULTX58M30@mailout4.samsung.com>; Mon, 09 Jun 2014 12:34:17 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id B8.EA.24374.93B25935; Mon, 09 Jun 2014 12:34:17 +0900 (KST) X-AuditID: cbfee68d-b7fd46d000005f36-62-53952b396857 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0D.C1.08203.93B25935; Mon, 09 Jun 2014 12:34:17 +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 <0N6V00ACDTX4P810@mmp2.samsung.com>; Mon, 09 Jun 2014 12:34:16 +0900 (KST) From: Jaehoon Chung To: linux-mmc Cc: Chris Ball , Ulf Hansson , tgih.jun@samsung.com, devicetree@vger.kernel.org, =?UTF-8?q?Heiko=20St=FCbner?= , dinguyen@altera.com, Mark Rutland , Tushar Behera , Jaehoon Chung Subject: [PATCHv6 1/2] mmc: dw_mmc: replace "disable-wp" from slot's quirk to host's quirk Date: Mon, 09 Jun 2014 12:34:14 +0900 Message-id: <1402284855-3968-2-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1402284855-3968-1-git-send-email-jh80.chung@samsung.com> References: <1402284855-3968-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42JZI2JSomupPTXY4F2nkMWEy9sZLeYfOcdq cfzSYmaL/49es1rc+NXGanHkfz+jxdLrF5ksPty/yGzR/ncvm8XxteEOXB6teyeweayZt4bR 4861PWweN14tZPLo27KK0WP7tXnMHp83yQWwR3HZpKTmZJalFunbJXBlLNx9lbGgmbvi2LeZ LA2M3zm6GDk4JARMJDaejOti5AQyxSQu3FvP1sXIxSEksJRR4tmlH6wQCROJl0vOs0IkpjNK fHndwgiSEBJoY5L4vTgExGYT0JHY/u04E4gtIqAp0bl9JRvIAmaBfUwSZ3RAwsICMRLTNp9j B7FZBFQlTr25wAhSwivgKvH4rzjEOQoScybZgFRwCrhJzDnXxAaxyFWi9/ghFpALJAQOsUtM u7CcFWKMgMS3ySAJkF5ZiU0HmCEulpQ4uOIGywRG4QWMDKsYRVMLkguKk9KLDPWKE3OLS/PS 9ZLzczcxAuPh9L9nvTsYbx+wPsSYDDRuIrO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OrL/O 1v3k5eplOcrLFYNlv77YvTV8jc63Rv6WfYY+hcsmCAZNXRokybz734HnhsKsf4w31FWe8Jp5 wSNo2kzHhV1n25RYijMSDbWYi4oTAWtgrGz7AgAA 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: -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, }, };