From patchwork Fri Sep 20 19:30:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 276611 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 A08FB2C00FE for ; Sat, 21 Sep 2013 05:31:34 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E0CB04A239; Fri, 20 Sep 2013 21:31:31 +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 vMm2K-lWRkMP; Fri, 20 Sep 2013 21:31:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 029474A21A; Fri, 20 Sep 2013 21:31:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 893A74A22B for ; Fri, 20 Sep 2013 21:31:25 +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 TGK1Kqn+uq5F for ; Fri, 20 Sep 2013 21:31:19 +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-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) by theia.denx.de (Postfix) with ESMTPS id BE0624A21A for ; Fri, 20 Sep 2013 21:31:12 +0200 (CEST) Received: by mail-qa0-f45.google.com with SMTP id k4so5994qaq.4 for ; Fri, 20 Sep 2013 12:31:11 -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:in-reply-to:references; bh=Fb1FI/7JdDaFx8HvQqxmP6qbvl4ctPo/vkI6lQJAptk=; b=NAi3INX1PnkjNTl8egJccQ4it/TM3LFxCp7NTpUB+8OG5Ghh18kBOB6Lj9ycgYZXzz TUH+pHnOYzsyAbQn/gXuXf8DO+MgCG0ljz7D1GmnR+WjYP1NhcIJr1UsdJ3lAZaWMpQx dYmK6tE5XdEZJ0PdwmsQU3vfgGqO6Ri+T+va4MUk/On0+GxQit5co6KRo2azydUSXxVG w6RtqbL6ZPg8CSRQOoo1K5a8BxzmRivqPJfwDSjJc9L8wF78SUTzbty4UwruxDZczBWA cQ9JeCDJ70XnplLYA4h7GPmXJynsQ8GB+El0wF4vhdJHMcLqApVda8fnBFp1jAsywXpf d+9w== X-Received: by 10.49.99.98 with SMTP id ep2mr12910360qeb.9.1379705471021; Fri, 20 Sep 2013 12:31:11 -0700 (PDT) Received: from localhost.localdomain (host47.wlan-a.fee.unicamp.br. [143.106.174.47]) by mx.google.com with ESMTPSA id f5sm20597365qev.8.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 12:31:10 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Date: Fri, 20 Sep 2013 16:30:49 -0300 Message-Id: <1379705450-14684-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1379705450-14684-1-git-send-email-festevam@gmail.com> References: <1379705450-14684-1-git-send-email-festevam@gmail.com> Cc: Fabio Estevam , u-boot@lists.denx.de, Marek Vasut Subject: [U-Boot] [PATCH 2/3] mx28evk: Propagate the error if cpu_eth_init() fails 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 From: Fabio Estevam If cpu_eth_init() fails we should return the error immediately. Cc: Marek Vasut Signed-off-by: Fabio Estevam Acked-by: Marek Vasut --- board/denx/m28evk/m28evk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/denx/m28evk/m28evk.c b/board/denx/m28evk/m28evk.c index f4453d6..33d38cf 100644 --- a/board/denx/m28evk/m28evk.c +++ b/board/denx/m28evk/m28evk.c @@ -116,6 +116,8 @@ int board_eth_init(bd_t *bis) int ret; ret = cpu_eth_init(bis); + if (ret) + return ret; clrsetbits_le32(&clkctrl_regs->hw_clkctrl_enet, CLKCTRL_ENET_TIME_SEL_MASK | CLKCTRL_ENET_CLK_OUT_EN,