mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/3] USB: dwc2: Fix handling NAK
@ 2026-06-02  9:29 Sascha Hauer
  2026-06-02  9:29 ` [PATCH v2 1/3] usb: dwc2: Do not print error messages when URBs are nacked Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sascha Hauer @ 2026-06-02  9:29 UTC (permalink / raw)
  To: BAREBOX; +Cc: anis chali, Sascha Hauer

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 <s.hauer@pengutronix.de>
---
Changes in v2:
- Address Anis Chalis log spam problems
- Link to v1: https://lore.barebox.org/20260420-usb-dwc2-usb-c-stick-v1-0-c86f733f24f8@pengutronix.de

---
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 <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-06-02  9:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02  9:29 [PATCH v2 0/3] USB: dwc2: Fix handling NAK Sascha Hauer
2026-06-02  9:29 ` [PATCH v2 1/3] usb: dwc2: Do not print error messages when URBs are nacked Sascha Hauer
2026-06-02  9:29 ` [PATCH v2 2/3] usb: dwc2: handle NAK when CHHLTD does not fire Sascha Hauer
2026-06-02  9:29 ` [PATCH v2 3/3] usb: dwc2: fix data toggle reset direction on ClearFeature(ENDPOINT_HALT) Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox