Skip to content

usb: xhci: series of cleanups and simplifications

Niklas Neronin linux-usb 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9usb: xhci: remove redundant function wrapperdrivers/usb/host/xhci-ring.c+6 -140 replies
2/9usb: xhci: clarify duplicate CMRT deletion on suspend/resumedrivers/usb/host/xhci.c+4 -00 replies
3/9usb: xhci: simplify CMRT initialization logicdrivers/usb/host/xhci.c+3 -50 replies
4/9usb: xhci: simpilfy resume root hub codedrivers/usb/host/xhci.c+16 -200 replies
5/9usb: xhci: relocate Restore/Controller error checkdrivers/usb/host/xhci.c+5 -80 replies
6/9usb: xhci: move roothub port limit validationdrivers/usb/host/xhci-mem.c+18 -270 replies
7/9usb: xhci: simplify USBSTS register resetdrivers/usb/host/xhci.c+2 -50 replies
8/9usb: xhci: remove redundant 'xhci' pointer from endpoint structdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci-ring.c drivers/usb/host/xhci.c +1 more+27 -320 replies
9/9usb: xhci: remove duplicate '0x' prefix from DMA addressesdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci-ring.c+6 -60 replies

Reviews trailers per patch

7 of 9 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/9
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] usb: xhci: series of cleanups and simplifications

This series contains an assortment of cleanups and minor refactorings for the xhci driver.

The goal is to simplify existing code, remove redundant constructs, and clarify certain execution paths related to endpoint handling, command management, and controller state transitions.

None of these patches introduce functional changes; they aim to improve readability, reduce unnecessary operations, and make future maintenance easier.

Niklas Neronin (9):
usb: xhci: remove redundant function wrapper
usb: xhci: clarify duplicate CMRT deletion on suspend/resume
usb: xhci: simplify CMRT initialization logic
usb: xhci: simpilfy resume root hub code
usb: xhci: relocate Restore/Controller error check
usb: xhci: move roothub port limit validation
usb: xhci: simplify USBSTS register reset
usb: xhci: remove redundant 'xhci' pointer from endpoint struct
usb: xhci: remove duplicate '0x' prefix

 drivers/usb/host/xhci-mem.c  | 54 +++++++++++--------------
 drivers/usb/host/xhci-ring.c | 77 ++++++++++++++++--------------------
 drivers/usb/host/xhci.c      | 72 +++++++++++++++------------------
 drivers/usb/host/xhci.h      |  3 +-
 4 files changed, 88 insertions(+), 118 deletions(-)
Signature · 1 line
2.50.1