[PATCH v2 1/3] usb: dwc2: Do not print error messages when URBs are nacked
Sascha Hauer
s.hauer at pengutronix.de
Tue Jun 2 02:29:20 PDT 2026
It's a normal usecase that a USB bulk transfer is nacked, so do not
print an error message in this case. The usbnet driver polls the
availability of RX frames with bulk transfers with short timeouts.
When it's nacked it just means that currently no RX data is available.
Currently wait_for_chhltd() returns -ETIMEDOUT when a transfer is
nacked, so the message is not printed. This however changes with
the next patch, so silence the error message now to avoid log spam
with the next patch.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/usb/dwc2/host.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/host.c b/drivers/usb/dwc2/host.c
index 93994f0be3..eede21c692 100644
--- a/drivers/usb/dwc2/host.c
+++ b/drivers/usb/dwc2/host.c
@@ -435,7 +435,7 @@ static int dwc2_submit_bulk_msg(struct usb_device *udev, unsigned long pipe,
buffer, len);
} while (ret == -EAGAIN && !is_timeout(start, timeout * MSECOND));
if (ret == -EAGAIN) {
- dwc2_err(dwc2, "Timeout on bulk endpoint\n");
+ dwc2_dbg(dwc2, "Timeout on bulk endpoint\n");
ret = -ETIMEDOUT;
}
--
2.47.3
More information about the barebox
mailing list