From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6CBEBC433EF for ; Thu, 7 Apr 2022 10:18:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C15A883CAF; Thu, 7 Apr 2022 12:18:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="Jl25JDoX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4970A803C8; Thu, 7 Apr 2022 12:17:46 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 23AA483C16 for ; Thu, 7 Apr 2022 12:17:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BB994B82718; Thu, 7 Apr 2022 10:17:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 433F2C385A8; Thu, 7 Apr 2022 10:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649326660; bh=gd0mth8R//T1Gz0O9SIisJTiyLAd/kyranZ0uAEYW0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jl25JDoXzZCakxdTK4tfisJ9fUdK+LGsaohOce2nCM6tUgidefB/n4GomfDON5uAP nQoSTsIgzcW3Oo2PwRR63qGZQEYS+1pAMDwJfw9fy9UpPg37DSs/NDcm5kfNkgYNmd O46LSUaN7bNQgo0R8AndcWq3AyfkN3IONsxxMx7VJtS8a90vewNEkgUJgCIYO6P4h3 d4wpfykMJkPEOOg5wmOO1ePv0Af5GwZfdEl0LLoW0z83HA2PdEk/DbQw3M3pw6xkxi D7uHBxAttLvCwY3pTZVvDxyztjWeT11CRC3Oo4YKZdN8GtwQajEhtjRQ50ChMb+2qI x2SkenOfbA6cQ== Received: by pali.im (Postfix) id 9F235B6E; Thu, 7 Apr 2022 12:17:37 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Priyanka Jain , Qiang Zhao , Shengzhou Liu , Sinan Akman Cc: u-boot@lists.denx.de Subject: [PATCH 01/11] board: freescale: p1_p2_rdb_pc: Do not hang in checkboard() Date: Thu, 7 Apr 2022 12:16:14 +0200 Message-Id: <20220407101624.15850-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220407101624.15850-1-pali@kernel.org> References: <20220407101624.15850-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Like in all other checks in checkboard() function, do not hang on error. Signed-off-by: Pali Rohár --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index 19ece1229631..186887336354 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -182,7 +182,7 @@ int checkboard(void) if (ret) { printf("%s: Cannot find udev for a bus %d\n", __func__, bus_num); - return -ENXIO; + return 0; /* Don't want to hang() on this error */ } if (dm_i2c_read(dev, 0, &in, 1) < 0 || -- 2.20.1