[PATCH v2 0/3] USB: dwc2: Fix handling NAK

Sascha Hauer s.hauer at pengutronix.de
Mon Jun 15 04:34:49 PDT 2026


On Tue, 02 Jun 2026 11:29:19 +0200, Sascha Hauer wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/3] usb: dwc2: Do not print error messages when URBs are nacked
      https://git.pengutronix.de/cgit/barebox/commit/?id=eef830fc6158 (link may not be stable)
[2/3] usb: dwc2: handle NAK when CHHLTD does not fire
      https://git.pengutronix.de/cgit/barebox/commit/?id=a7548991ea36 (link may not be stable)
[3/3] usb: dwc2: fix data toggle reset direction on ClearFeature(ENDPOINT_HALT)
      https://git.pengutronix.de/cgit/barebox/commit/?id=4db628f5d0f4 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list