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 <[email protected]> --- 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
