]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: dwc_eth_qos: Stop spam of RX packet not available message
authorJonas Karlman <jonas@kwiboo.se>
Sun, 1 Oct 2023 19:17:18 +0000 (19:17 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 7 Oct 2023 08:49:41 +0000 (16:49 +0800)
Remove spam of RX packet not available debug messages when waiting to
receive a packet.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/dwc_eth_qos.c

index 27be5cf70b4d79d3fa70984624d5f42f0114ed43..8e29f7b6c8f6d7467aa42cbe31f82c175d626c35 100644 (file)
@@ -1194,14 +1194,12 @@ static int eqos_recv(struct udevice *dev, int flags, uchar **packetp)
        struct eqos_desc *rx_desc;
        int length;
 
-       debug("%s(dev=%p, flags=%x):\n", __func__, dev, flags);
-
        rx_desc = eqos_get_desc(eqos, eqos->rx_desc_idx, true);
        eqos->config->ops->eqos_inval_desc(rx_desc);
-       if (rx_desc->des3 & EQOS_DESC3_OWN) {
-               debug("%s: RX packet not available\n", __func__);
+       if (rx_desc->des3 & EQOS_DESC3_OWN)
                return -EAGAIN;
-       }
+
+       debug("%s(dev=%p, flags=%x):\n", __func__, dev, flags);
 
        *packetp = eqos->rx_dma_buf +
                (eqos->rx_desc_idx * EQOS_MAX_PACKET_SIZE);