From patchwork Thu Mar 12 22:15:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 6000011 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 53FD9BF90F for ; Thu, 12 Mar 2015 22:15:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86D662035D for ; Thu, 12 Mar 2015 22:15:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A9AD92035B for ; Thu, 12 Mar 2015 22:15:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752891AbbCLWPx (ORCPT ); Thu, 12 Mar 2015 18:15:53 -0400 Received: from mail-qc0-f176.google.com ([209.85.216.176]:43162 "EHLO mail-qc0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752467AbbCLWPx (ORCPT ); Thu, 12 Mar 2015 18:15:53 -0400 Received: by qcyl6 with SMTP id l6so22362349qcy.10 for ; Thu, 12 Mar 2015 15:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=NrLjaPEG55axirPKDDLmPcEN9nYl+X57A23SPg8gIJA=; b=EEC8rA5okbAdy2Pe1COwcTf2Mo/qTEVo3HuQ3pXVSIRxyoXRH6YG4iLp08sbY5D4d1 AnemlzmHXi7rl9JTx/aD1knadFHLYbiP86U2o+Y1Gr4SurcE0/c5D1GI6xnv23D2MH+m 1f9gjrFgspleSE+aTXjKGesr0oQ5Vx7d8LuOTrejvPZViQAPLsf2UVwCzmJoguTKIb+y OhohvTQ6IVBQa57rXgTFhqNPHwS5WMGGiRaOXc8xQ0W4rM01h+50uXlfQC/XQOmi3oWA WVMYA2nJXtUN/mPj0x2qIr3UeLyaUPqgWptqw2js4gKKK0AZJDqFPCjD2p1jEwosEfFo Uhng== X-Received: by 10.55.18.8 with SMTP id c8mr36629209qkh.25.1426198552593; Thu, 12 Mar 2015 15:15:52 -0700 (PDT) Received: from localhost.localdomain ([177.194.98.53]) by mx.google.com with ESMTPSA id n19sm138302qhb.12.2015.03.12.15.15.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Mar 2015 15:15:51 -0700 (PDT) From: Fabio Estevam To: ulf.hansson@linaro.org Cc: shawn.guo@linaro.org, linux@arm.linux.org.uk, kernel@pengutronix.de, otavio@ossystems.com.br, linux-mmc@vger.kernel.org, Fabio Estevam Subject: [PATCH] mmc: sdhci-esdhc-imx: Call mmc_of_parse() Date: Thu, 12 Mar 2015 19:15:35 -0300 Message-Id: <1426198535-21312-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Fabio Estevam Currently it is not possible to use 'mmc-pwrseq-simple' property with this driver because mmc_of_parse() is never called. mmc_of_parse() calls mmc_pwrseq_alloc() that manages MMC power sequence. Call the generic mmc_of_parse() so that we can use 'mmc-pwrseq-simple' to provide reset GPIO to the Wifi/BT chip. Tested on a imx6sl-warp board. Signed-off-by: Fabio Estevam --- drivers/mmc/host/sdhci-esdhc-imx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 9cce5cf..d714d8f 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1075,6 +1075,11 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) host->quirks2 |= SDHCI_QUIRK2_NO_1_8_V; } + /* call to generic mmc_of_parse to support additional capabilities */ + err = mmc_of_parse(host->mmc); + if (err) + goto disable_clk; + err = sdhci_add_host(host); if (err) goto disable_clk;