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 C0698C5475B for ; Tue, 20 Feb 2024 18:30:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B914B87FFC; Tue, 20 Feb 2024 19:29:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=dolcini.it 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=dolcini.it header.i=@dolcini.it header.b="A2l+KuCE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6EF6488012; Tue, 20 Feb 2024 19:29:41 +0100 (CET) Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 225D687FF5 for ; Tue, 20 Feb 2024 19:29:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=francesco@dolcini.it Received: from francesco-nb.corp.toradex.com (31-10-206-125.static.upc.ch [31.10.206.125]) by mail11.truemail.it (Postfix) with ESMTPA id 695D322697; Tue, 20 Feb 2024 19:29:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1708453771; bh=rr7DjUrA2GZ1aaZ8q1hJfY/yKXqQvYOmT/BdWNlBI3M=; h=From:To:Subject; b=A2l+KuCEDQStXpyAC5SFAHOKZv72Wh2jzVQB+Fz/+p5PNp9WgSv0fv/RgQEpV9K1z V3JtoNW+cT9m3KR13h6HV67drmC2kzuRmv50VKkdool2Sc+GyP8LZ6k2g0jDjyEuBt z4/HTmdpueIl4Wo+02TbFSrn3oyRBY4UGENJiUulD33Y6ozrPnJWqQLXgx4OaFm8tr a71GGt6NJoW/Pi6jUFLtj2MePyjOrw7LwniAfbdhaWrP62iCAz77AG1/zgNvL6N8YA KcDci4KYYdok3eeDRlMEIcoJHVgtvMziZqPRmiJAh7sFGFHiDh6w+5C1XimikxeApO ebknqH4LJ5HqQ== From: Francesco Dolcini To: Marcel Ziswiler , Tom Rini Cc: Emanuele Ghidoli , u-boot@lists.denx.de, Francesco Dolcini Subject: [PATCH v1 1/7] toradex: Fix recursive call to checkboard Date: Tue, 20 Feb 2024 19:29:20 +0100 Message-Id: <20240220182926.101161-2-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240220182926.101161-1-francesco@dolcini.it> References: <20240220182926.101161-1-francesco@dolcini.it> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean From: Emanuele Ghidoli Since checkboard() is used instead of show_board_info(), in case toradex config block is missing or malformed, checkboard is recursively called. It prints a long list of "MISSING TORADEX CONFIG BLOCK" till the stack is full. Fixes: edb0ecd18708 ("toradex: Use checkboard() instead of show_board_info()") Signed-off-by: Emanuele Ghidoli Signed-off-by: Francesco Dolcini --- board/toradex/common/tdx-common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/board/toradex/common/tdx-common.c b/board/toradex/common/tdx-common.c index ed8f0a6a4756..ddc4a175da68 100644 --- a/board/toradex/common/tdx-common.c +++ b/board/toradex/common/tdx-common.c @@ -103,7 +103,6 @@ int tdx_checkboard(void) if (read_tdx_cfg_block()) { printf("MISSING TORADEX CONFIG BLOCK\n"); get_mac_from_serial(tdx_serial, &tdx_eth_addr); - checkboard(); } else { snprintf(tdx_serial_str, sizeof(tdx_serial_str), "%08u", tdx_serial); -- 2.39.2