From patchwork Sun Sep 9 03:05:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Ball X-Patchwork-Id: 1427451 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 247283FC85 for ; Sun, 9 Sep 2012 03:05:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148Ab2IIDFm (ORCPT ); Sat, 8 Sep 2012 23:05:42 -0400 Received: from void.printf.net ([89.145.121.20]:45611 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751725Ab2IIDFm (ORCPT ); Sat, 8 Sep 2012 23:05:42 -0400 Received: from c-76-24-28-220.hsd1.ma.comcast.net ([76.24.28.220] helo=octavius.laptop.org) by void.printf.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1TAXq6-0001k0-M8; Sun, 09 Sep 2012 04:05:39 +0100 From: Chris Ball To: linux-mmc@vger.kernel.org Cc: Philip Rakity , Haojian Zhuang , Zhangfei Gao Subject: [PATCH] mmc: sdhci-pxav3: dt: Support "broken-cd"/"wp-inverted" properties Date: Sat, 08 Sep 2012 23:05:36 -0400 Message-ID: <87mx0zzyin.fsf@octavius.laptop.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Signed-off-by: Chris Ball Acked-by: Haojian Zhuang --- drivers/mmc/host/sdhci-pxav3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index a553b18..8a9b367 100644 --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sdhci-pxav3.c @@ -198,6 +198,12 @@ static struct sdhci_pxa_platdata *pxav3_get_mmc_pdata(struct device *dev) if (clk_delay_cycles > 0) pdata->clk_delay_cycles = clk_delay_cycles; + if (of_find_property(np, "broken-cd", NULL)) + pdata->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; + + if (of_find_property(np, "wp-inverted", NULL)) + pdata->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT; + return pdata; } #else