[PATCH] boards: siemens: iot2050: Ignore network errors during bootstage tracking

From: Jan Kiszka jan.kiszka@siemens.com
We need to filter out NET_ETH_START errors because we have to enable networking in order to propagate the MAC addresses to the DT while there is no network driver for the prueth in U-Boot yet.
Signed-off-by: Jan Kiszka jan.kiszka@siemens.com --- board/siemens/iot2050/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/siemens/iot2050/board.c b/board/siemens/iot2050/board.c index 16ae2ffc17..b965ae9fa4 100644 --- a/board/siemens/iot2050/board.c +++ b/board/siemens/iot2050/board.c @@ -259,7 +259,8 @@ void show_boot_progress(int progress) struct udevice *dev; int ret;
- if (progress < 0 || progress == BOOTSTAGE_ID_ENTER_CLI_LOOP) { + if ((progress < 0 && progress != -BOOTSTAGE_ID_NET_ETH_START) || + progress == BOOTSTAGE_ID_ENTER_CLI_LOOP) { ret = led_get_by_label("status-led-green", &dev); if (ret == 0) led_set_state(dev, LEDST_OFF);

On Wed, Nov 03, 2021 at 03:12:30PM +0100, Jan Kiszka wrote:
From: Jan Kiszka jan.kiszka@siemens.com
We need to filter out NET_ETH_START errors because we have to enable networking in order to propagate the MAC addresses to the DT while there is no network driver for the prueth in U-Boot yet.
Signed-off-by: Jan Kiszka jan.kiszka@siemens.com
Applied to u-boot/master, thanks!
participants (2)
-
Jan Kiszka
-
Tom Rini