[PATCH 4/4] net: usb: add debug call in the receive path

Stefan Kerkmann s.kerkmann at pengutronix.de
Thu Aug 7 08:53:13 PDT 2025


This is the equivalent of the debug call `usbnet_send` and useful to
detect problems in the receive path.

Signed-off-by: Stefan Kerkmann <s.kerkmann at pengutronix.de>
---
 drivers/net/usb/usbnet.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 6e3ee4d552be36fe6bb052ae29f04a0650b4567d..95862cc5b5962178f2ff5dc9bc30253ec3c3fa2d 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -129,6 +129,9 @@ static void usbnet_recv(struct eth_device *edev)
 	if (ret)
 		return;
 
+	dev_dbg(&edev->dev, "%s: ret: %d len: %d alen: %d\n", __func__, ret,
+		len, alen);
+
 	if (alen) {
 		if (info->rx_fixup)
 			info->rx_fixup(dev, dev->rx_buf, alen);

-- 
2.39.5




More information about the barebox mailing list