summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Karlman <jonas@kwiboo.se>2023-10-01 19:17:18 +0000
committerKever Yang <kever.yang@rock-chips.com>2023-10-07 16:49:41 +0800
commit95446f4a4dc73e956687d9d75b049bcab5fd7e49 (patch)
treeb2584da091742e026d53e9c139edc0c7cd2be090
parentded6014dfdcf8a9a73fc67eee72d40cdfff4e1fc (diff)
downloadu-boot-95446f4a4dc73e956687d9d75b049bcab5fd7e49.tar.gz
u-boot-95446f4a4dc73e956687d9d75b049bcab5fd7e49.tar.bz2
u-boot-95446f4a4dc73e956687d9d75b049bcab5fd7e49.zip
net: dwc_eth_qos: Stop spam of RX packet not available message
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>
-rw-r--r--drivers/net/dwc_eth_qos.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c
index 27be5cf70b..8e29f7b6c8 100644
--- a/drivers/net/dwc_eth_qos.c
+++ b/drivers/net/dwc_eth_qos.c
@@ -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);