A NAK should return -EAGAIN to let the retry logic work. This showed up on a Samsung USB-C memory stick which otherwise was recognized, but couldn't be initialized.
The v2 now adddresses Anis' log spamming problems. The solution here is to just silence the error message by turning it into dev_dbg. The message says "Timeout on bulk endpoint" which is normal and expected behaviour. The usbnet driver expects bulk messages to timeout when no RX data is available. I do not have a Rpi4 CM to reproduce Anis problems, but I have seen the same on a Rpi3B. With this series USB memory sticks now work on the Rpi3B, hopefully on the Rpi4 CM as well. Signed-off-by: Sascha Hauer <[email protected]> --- Changes in v2: - Address Anis Chalis log spam problems - Link to v1: https://lore.barebox.org/[email protected] --- Sascha Hauer (3): usb: dwc2: Do not print error messages when URBs are nacked usb: dwc2: handle NAK when CHHLTD does not fire usb: dwc2: fix data toggle reset direction on ClearFeature(ENDPOINT_HALT) drivers/usb/dwc2/host.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) --- base-commit: 651343da8af78d134d7ead4d2b36095d7ddc2d8f change-id: 20260420-usb-dwc2-usb-c-stick-ea31c736477c Best regards, -- Sascha Hauer <[email protected]>
