From patchwork Fri Apr 19 13:41:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 237948 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B239D2C013F for ; Fri, 19 Apr 2013 23:43:18 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 51A514A3E8; Fri, 19 Apr 2013 15:43:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J1alobY5Ac46; Fri, 19 Apr 2013 15:43:02 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0D07F4A3E9; Fri, 19 Apr 2013 15:42:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 560874A343 for ; Fri, 19 Apr 2013 15:42:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gQzJGjIUHNCR for ; Fri, 19 Apr 2013 15:42:37 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-gg0-f171.google.com (mail-gg0-f171.google.com [209.85.161.171]) by theia.denx.de (Postfix) with ESMTPS id 9228C4A3D7 for ; Fri, 19 Apr 2013 15:42:33 +0200 (CEST) Received: by mail-gg0-f171.google.com with SMTP id j1so599344ggn.2 for ; Fri, 19 Apr 2013 06:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=GTkSLSv8ikAcCdj8FQCeym8IR2ANbARj+0t3Ery4vF0=; b=hZ8lAyBZwFKIOrvc+eAXlPo1H3sqzahn6d1EW4jBjbPNYz20yWbVSfFcg2Lyk13GwN vF4h3B/dEU6vQoEDdbzF1SbT0IeLreXKXHvTmqKMs/cVMRljjERwAs831Di/HOO940Kv zBceuJPOaPZRX0hgzgNv77/A+1BeDlTr1lYya8MRraFbN+tUxpilpUsOs52NbOzFoMKM IJL9OqzPwCifPy/Z3u64B5SdTR5yZbDH94qkl+8N9SmImceIxtHx5/gqA7EmHH8B8mEN /37R7Hn4jPDfqRUp705vp2/zoN+1dc0a5M/U2t/e08NzWpfKB+erv2ot5Kb0Z0WasRR9 EkhQ== X-Received: by 10.236.83.230 with SMTP id q66mr11054634yhe.125.1366378951031; Fri, 19 Apr 2013 06:42:31 -0700 (PDT) Received: from nano.lab.ossystems.com.br ([187.23.144.59]) by mx.google.com with ESMTPS id x33sm24645868yhn.18.2013.04.19.06.42.28 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Apr 2013 06:42:30 -0700 (PDT) From: Otavio Salvador To: U-Boot Mailing List Date: Fri, 19 Apr 2013 10:41:58 -0300 Message-Id: <1366378923-15615-2-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1366378923-15615-1-git-send-email-otavio@ossystems.com.br> References: <1366378923-15615-1-git-send-email-otavio@ossystems.com.br> Cc: Fabio Estevam , Otavio Salvador Subject: [U-Boot] [PATCH v3 2/7] mx6qsabresd: Return status when initializing MMC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Otavio Salvador --- Changes in v3: - New patch Changes in v2: None board/freescale/mx6qsabresd/mx6qsabresd.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/board/freescale/mx6qsabresd/mx6qsabresd.c b/board/freescale/mx6qsabresd/mx6qsabresd.c index 0d7cb9e..bf9beef 100644 --- a/board/freescale/mx6qsabresd/mx6qsabresd.c +++ b/board/freescale/mx6qsabresd/mx6qsabresd.c @@ -166,6 +166,7 @@ int board_mmc_getcd(struct mmc *mmc) int board_mmc_init(bd_t *bis) { + s32 status = 0; int i; /* @@ -196,15 +197,15 @@ int board_mmc_init(bd_t *bis) break; default: printf("Warning: you configured more USDHC controllers" - "(%d) than supported by the board\n", i + 1); - return 0; - } + "(%d) then supported by the board (%d)\n", + i + 1, CONFIG_SYS_FSL_USDHC_NUM); + return status; + } - if (fsl_esdhc_initialize(bis, &usdhc_cfg[i])) - printf("Warning: failed to initialize mmc dev %d\n", i); + status |= fsl_esdhc_initialize(bis, &usdhc_cfg[i]); } - return 0; + return status; } #endif