diff options
author | Emanuele Ghidoli <emanuele.ghidoli@toradex.com> | 2024-02-23 10:11:37 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-03-01 09:10:44 -0500 |
commit | 32b64893fb669f2c47697fe1f0862a192dd4b7e0 (patch) | |
tree | 3bdd0718cfe7bdfa27fd582a9c8035820e6e50bc | |
parent | 5e4a0c7f4a2c9d4670b75a6a2056243b1a56512b (diff) | |
download | u-boot-32b64893fb669f2c47697fe1f0862a192dd4b7e0.zip u-boot-32b64893fb669f2c47697fe1f0862a192dd4b7e0.tar.gz u-boot-32b64893fb669f2c47697fe1f0862a192dd4b7e0.tar.bz2 |
toradex: Fix recursive call to checkboard
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()")
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> # Verdin iMX8M Plus
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
-rw-r--r-- | board/toradex/common/tdx-common.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/board/toradex/common/tdx-common.c b/board/toradex/common/tdx-common.c index ed8f0a6..ddc4a17 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); |