Skip to content

LAN7800 driver improvements

John Efstathiades linux-usb netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesApplied 10/10
  2. v110 patches 7 repliesSuperseded

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10lan78xx: Fix white space and style issuesdrivers/net/usb/lan78xx.c+42 -380 repliesApplied
2/10lan78xx: Remove unused timerdrivers/net/usb/lan78xx.c+1 -30 repliesApplied
3/10lan78xx: Set flow control threshold to prevent packet lossdrivers/net/usb/lan78xx.c+15 -20 repliesApplied
4/10lan78xx: Remove unused pause frame queuedrivers/net/usb/lan78xx.c+0 -90 repliesApplied
5/10lan78xx: Add missing return code checksdrivers/net/usb/lan78xx.c+333 -660 repliesApplied
6/10lan78xx: Fix exception on link speed changedrivers/net/usb/lan78xx.c+48 -60 repliesApplied
7/10lan78xx: Fix partial packet errors on suspend/resumedrivers/net/usb/lan78xx.c+197 -1060 repliesApplied
8/10lan78xx: Fix race conditions in suspend/resume handlingdrivers/net/usb/lan78xx.c+284 -1350 repliesApplied
9/10lan78xx: Fix race condition in disconnect handlingdrivers/net/usb/lan78xx.c+57 -90 repliesApplied
10/10lan78xx: Limit number of driver warning messagesdrivers/net/usb/lan78xx.c+3 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 00/10] LAN7800 driver improvements

This patch set introduces a number of improvements and fixes for problems found during testing of a modification to add a NAPI-style approach to packet handling to improve performance.

NOTE: the NAPI changes are not part of this patch set and the issues
fixed by this patch set are not coupled to the NAPI changes.

Patch 1 fixes white space and style issues

Patch 2 removes an unused timer

Patch 3 introduces macros to set the internal packet FIFO flow control levels, which makes it easier to update the levels in future.

Patch 4 removes an unused queue

Patch 5 (updated for v2) introduces function return value checks and error propagation to various parts of the driver where a return code was captured but then ignored.

This patch is completely different to patch 5 in version 1 of this patch set. The changes in the v1 patch 5 are being set aside for the time being.

Patch 6 updates the LAN7800 MAC reset code to ensure there is no PHY register access in progress when the MAC is reset. This change prevents a kernel exception that can otherwise occur.

Patch 7 fixes problems with system suspend and resume handling while the device is transmitting and receiving data.

Patch 8 fixes problems with auto-suspend and resume handling and depends on changes introduced by patch 7.

Patch 9 fixes problems with device disconnect handling that can result in kernel exceptions and/or hang.

Patch 10 limits the rate at which driver warning messages are emitted.

John Efstathiades (10):
lan78xx: Fix white space and style issues
lan78xx: Remove unused timer
lan78xx: Set flow control threshold to prevent packet loss
lan78xx: Remove unused pause frame queue
lan78xx: Add missing return code checks
lan78xx: Fix exception on link speed change
lan78xx: Fix partial packet errors on suspend/resume
lan78xx: Fix race conditions in suspend/resume handling
lan78xx: Fix race condition in disconnect handling
lan78xx: Limit number of driver warning messages

 drivers/net/usb/lan78xx.c | 1060 +++++++++++++++++++++++++++++--------
 1 file changed, 832 insertions(+), 228 deletions(-)
Signature · 1 line
2.25.1