From patchwork Wed Feb 6 19:46:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2106341 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 BAAF43FCFC for ; Wed, 6 Feb 2013 19:47:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757961Ab3BFTrI (ORCPT ); Wed, 6 Feb 2013 14:47:08 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:52133 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757346Ab3BFTrG (ORCPT ); Wed, 6 Feb 2013 14:47:06 -0500 Received: from axis700.grange (dslb-178-006-240-079.pools.arcor-ip.net [178.6.240.79]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0LzDcL-1UyWgy0081-014TFC; Wed, 06 Feb 2013 20:47:05 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 8945740B9D; Wed, 6 Feb 2013 20:47:04 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1U3AxU-0004qD-E5; Wed, 06 Feb 2013 20:47:04 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org, linux-sh@vger.kernel.org, Magnus Damm , Simon Horman , Guennadi Liakhovetski , Arnd Bergmann Subject: [PATCH v3 05/13] mmc: sh-mmcif: use mmc_of_parse() to parse standard MMC DT bindings Date: Wed, 6 Feb 2013 20:46:52 +0100 Message-Id: <1360180020-18555-6-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1360180020-18555-1-git-send-email-g.liakhovetski@gmx.de> References: <1360180020-18555-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:HW/YzzyZjApfEDPNuAlLfQnflvbUgtxouFXccrFqPhj ufFXXVyR9XPvlUKU16Q3MV9zyo7h0MaiikefGZA4J9Gv3gYGn1 +AHNlqwWSZhTyVikljXP/Iqb9BEpK0pp7Vt2eL3rFgnySV2Nb+ GXP4YTutN6M8qhzACS7/Y02tXQ8oxEDxnFmb+1PLhOz+0StmwZ Y0AuAWG3yVuuV4V9/PaVV7bnzHPwARKZPxqVZJXxNSpvVo7WZ3 8nJCLobU+nlB1phxwtQL++c4XNFc3wEPVUcBhQutUsZoRYHe02 hvedseHzd52MvEaZaOelkDkTsTY+KziJoCH4sglfk0Y5ovmmuj 1XAVIsGwneFqlRVgOct1hHzEBxrmNZqpu6rTJ95Ur+evLgZexZ 1ZJ7fpJtkWGaw== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Use mmc_of_parse() to get interface capability flags and used GPIOs from device-tree bindings. Cc: Arnd Bergmann Signed-off-by: Guennadi Liakhovetski --- v3: updated on top of "mmc: sh_mmcif: Avoid unnecessary mmc_delay() at mmc_card_sleepawake()" drivers/mmc/host/sh_mmcif.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 7d05852..adb4f68 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1331,6 +1331,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) ret = -ENOMEM; goto ealloch; } + mmc_of_parse(mmc); host = mmc_priv(mmc); host->mmc = mmc; host->addr = reg; @@ -1343,7 +1344,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) mmc->ops = &sh_mmcif_ops; sh_mmcif_init_ocr(host); - mmc->caps = MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY; + mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY; if (pd && pd->caps) mmc->caps |= pd->caps; mmc->max_segs = 32;