]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
driver/net/rtl8139: remove debug print
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Tue, 26 Dec 2023 15:46:15 +0000 (21:46 +0600)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jan 2024 16:24:58 +0000 (11:24 -0500)
debug print delays reset of the driver. Finally I see
bunch of "rx error FFFF" errors in the screen. CI can
not handle many prints. While network works fine there

Reproduced with:
make CROSS_COMPILE=sh2-linux- r2dplus_defconfig all
qemu-system-sh4 -M r2d -nographic -serial null \
-serial mon:stdio -net user,tftp=`pwd` \
-net nic,model=rtl8139 -kernel ./u-boot.bin

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/net/rtl8139.c

index 106bc1c7ae79286a5b9002c005c80bc5e505d134..d8f24ec81a2f743058953445765a56950c379c30 100644 (file)
@@ -453,7 +453,7 @@ static int rtl8139_recv_common(struct rtl8139_priv *priv, unsigned char *rxdata,
                          RTL_STS_RXBADALIGN)) ||
            (rx_size < ETH_ZLEN) ||
            (rx_size > ETH_FRAME_LEN + 4)) {
-               printf("rx error %hX\n", rx_status);
+               debug("rx error %hX\n", rx_status);
                /* this clears all interrupts still pending */
                rtl8139_reset(priv);
                return 0;