]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
boards: siemens: iot2050: Ignore network errors during bootstage tracking
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 3 Nov 2021 14:12:30 +0000 (15:12 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 12 Nov 2021 00:02:44 +0000 (19:02 -0500)
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

index 16ae2ffc174538ac0d19a7aee6509b207f54c9b6..b965ae9fa497082c9e5c5fcda6aac7733bc32ae9 100644 (file)
@@ -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);