mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] usb: net: ax88179_178a: sync reset and rx with upstream
@ 2025-08-13  7:52 Stefan Kerkmann
  2025-08-13  7:52 ` [PATCH 1/2] net: usb: ax88179_178a: align rx_fixup " Stefan Kerkmann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Kerkmann @ 2025-08-13  7:52 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Stefan Kerkmann

These patches are the result of investigating dropped packages while
working with an AX88179A based UGREEN USB ethernet adapter. The main
improvements are bounds and consistency checking in the RX path. What I
couldn't fix at the moment is that the adapter sometimes stops receiving
packets after a "warm reset" of the device which doesn't power cycle the
device e.g. chain loading barebox via tftp without a power cycle of the
whole USB bus and devices.

I tried the following U-Boot commits, but they didn't fix the issue.

- 9713c15d2e6 ("eth: asix88179: Fix ASIX AX88179A PHY hang")
- 1bd136715a4 ("eth: asix88179: reset during probe")

What helps in the situation is physically re-plugging the ethernet
cable, which triggers a link reset in software. This link reset also
happens while opening the device so I'm suspecting a bug in the
controller itself (or there are still some missing reset instructions).
The Realtek RTL8153 chipsets seem handle this situation better, so it is
adviced to use them in a "warm reset" scenario until this is fixed.

Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
---
Stefan Kerkmann (2):
      net: usb: ax88179_178a: align rx_fixup with upstream
      net: usb: ax88179_178a: align reset with upstream

 drivers/net/usb/ax88179_178a.c | 79 ++++++++++++++++++++++++++++++------------
 1 file changed, 57 insertions(+), 22 deletions(-)
---
base-commit: ed59f724912d0b4a86f88fa318836260c88271d1
change-id: 20250813-fix-ax88179_178a-dropped-packets-39cbcd9f2c87

Best regards,
-- 
Stefan Kerkmann <s.kerkmann@pengutronix.de>




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

end of thread, other threads:[~2025-08-14 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-13  7:52 [PATCH 0/2] usb: net: ax88179_178a: sync reset and rx with upstream Stefan Kerkmann
2025-08-13  7:52 ` [PATCH 1/2] net: usb: ax88179_178a: align rx_fixup " Stefan Kerkmann
2025-08-13  7:52 ` [PATCH 2/2] net: usb: ax88179_178a: align reset " Stefan Kerkmann
2025-08-14 11:00 ` [PATCH 0/2] usb: net: ax88179_178a: sync reset and rx " Sascha Hauer

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