netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] can: esd_usb: Fixes and improvements
@ 2025-08-11 21:06 Stefan Mätje
  2025-08-11 21:06 ` [PATCH 1/6] can: esd_usb: Fix possible calls to kfree() with NULL Stefan Mätje
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Stefan Mätje @ 2025-08-11 21:06 UTC (permalink / raw)
  To: Marc Kleine-Budde, Vincent Mailhol, Frank Jungclaus, linux-can,
	socketcan
  Cc: Simon Horman, Olivier Sobrie, Oliver Hartkopp, netdev

The second patch fixes a condition where the esd_usb CAN driver
may not detect connected CAN-USB devices correctly after a
reboot. This patch was already presented on the list and changes
due to that feedback are integrated.

References:
https://lore.kernel.org/linux-can/d7fd564775351ea8a60a6ada83a0368a99ea6b19.camel@esd.eu/#r

The first patch is only a prerequisite for the second one that
simply avoids calling kfree() with NULL pointers.

The third patch fixes situations where the the handling of TX
context objects for each sent CAN frame could go out of sync
with the acknowledged or erroneous TX jobs and then lose free
TX context objects. This could lead to the driver incapable of
sending frames.

The forth patch adds TX FIFO watermark to eliminate occasional
error messages and significantly reduce the number of calls to
netif_start_queue() and netif_stop_queue().

The fifth patch makes some error messages also print the error
code to achieve a higher significance. Removes also a duplicate
message and makes the register / unregister messages symmetric.

The sixth patch avoids confusing error messages when
disconnecting CAN-USB devices.

Stefan Mätje (6):
  can: esd_usb: Fix possible calls to kfree() with NULL
  can: esd_usb: Fix not detecting version reply in probe routine
  can: esd_usb: Fix handling of TX context objects
  can: esd_usb: Add watermark handling for TX jobs
  can: esd_usb: Rework display of error messages
  can: esd_usb: Avoid errors triggered from USB disconnect

 drivers/net/can/usb/esd_usb.c | 213 +++++++++++++++++++++++++---------
 1 file changed, 156 insertions(+), 57 deletions(-)


base-commit: 0e6639c8505d70e821bc27f951a0ff6303f10d4d
-- 
2.34.1


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

end of thread, other threads:[~2025-08-19 16:41 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 21:06 [PATCH 0/6] can: esd_usb: Fixes and improvements Stefan Mätje
2025-08-11 21:06 ` [PATCH 1/6] can: esd_usb: Fix possible calls to kfree() with NULL Stefan Mätje
2025-08-12 12:33   ` Vadim Fedorenko
2025-08-15 14:57     ` Stefan Mätje
2025-08-17 15:02       ` David Laight
2025-08-13  9:20   ` Marc Kleine-Budde
2025-08-15 15:02     ` Stefan Mätje
2025-08-19 16:16       ` Stefan Mätje
2025-08-11 21:06 ` [PATCH 2/6] can: esd_usb: Fix not detecting version reply in probe routine Stefan Mätje
2025-08-13  8:26   ` Marc Kleine-Budde
2025-08-13 11:44     ` Vincent Mailhol
2025-08-19 16:41       ` Stefan Mätje
2025-08-19 16:23     ` Stefan Mätje
2025-08-11 21:06 ` [PATCH 3/6] can: esd_usb: Fix handling of TX context objects Stefan Mätje
2025-08-13  8:14   ` Marc Kleine-Budde
2025-08-15 15:29     ` Stefan Mätje
2025-08-11 21:06 ` [PATCH 4/6] can: esd_usb: Add watermark handling for TX jobs Stefan Mätje
2025-08-13  8:13   ` Marc Kleine-Budde
2025-08-18  9:55     ` Stefan Mätje
2025-08-11 21:06 ` [PATCH 5/6] can: esd_usb: Rework display of error messages Stefan Mätje
2025-08-13  8:12   ` Marc Kleine-Budde
2025-08-14 12:45     ` Marc Kleine-Budde
2025-08-18 12:21       ` Stefan Mätje
2025-08-11 21:06 ` [PATCH 6/6] can: esd_usb: Avoid errors triggered from USB disconnect Stefan Mätje
2025-08-13  8:09   ` Marc Kleine-Budde
2025-08-16 13:11     ` Stefan Mätje

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).