usb: xhci: rework xHCI Port macros
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest20 patches 0 repliesNew
- v122 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | usb: xhci: replace bit shifts with the BIT() macro in xhci-port.hdrivers/ | +23 | 0 replies | |
| 2/20 | usb: xhci: rework Port Speed macrosdrivers/ drivers/ drivers/ +3 more | +47 | 0 replies | |
| 3/20 | usb: xhci: rework Port Link State macrosdrivers/ drivers/ drivers/ +5 more | +63 | 0 replies | |
| 4/20 | usb: xhci: replace old Port macro prefixdrivers/ drivers/ drivers/ +5 more | +110 | 0 replies | |
| 5/20 | usb: xhci: rework Port Indicator Control macrodrivers/ | +5 | 0 replies | |
| 6/20 | usb: xhci: rework USB3 PORTPMSC macrosdrivers/ drivers/ | +16 | 0 replies | |
| 7/20 | usb: xhci: rework USB2 PORTPMSC macrosdrivers/ drivers/ drivers/ | +24 | 0 replies | |
| 8/20 | usb: xhci: rework USB3 PORTLI macrosdrivers/ drivers/ drivers/ | +14 | 0 replies | |
| 9/20 | usb: xhci: rework USB2 PORTLI macrosdrivers/ drivers/ | +9 | 0 replies | |
| 10/20 | usb: xhci: document USB3 PORTHLPMC register layoutdrivers/ | +4 | 0 replies | |
| 11/20 | usb: xhci: rework USB2 PORTHLPMC macrosdrivers/ drivers/ | +13 | 0 replies | |
| 12/20 | usb: xhci: update port register bitfield comments for consistencydrivers/ drivers/ | +36 | 0 replies | |
| 13/20 | usb: xhci: rename port register macros to xHCI spec abbreviationsdrivers/ drivers/ drivers/ +7 more | +96 | 0 replies | |
| 14/20 | usb: xhci: replace magic numbers with Port macrosdrivers/ | +8 | 0 replies | |
| 15/20 | usb: xhci: update PORTSC aggregate macrosdrivers/ | +6 | 0 replies | |
| 16/20 | usb: xhci: consolidate PORTSC RW1CS bit macrosdrivers/ drivers/ drivers/ | +13 | 0 replies | |
| 17/20 | usb: xhci: relocate all port register macros to xhci-port.hdrivers/ drivers/ drivers/ | +11 | 0 replies | |
| 18/20 | usb: xhci: preserve RW bits in xhci_port_state_to_neutral()drivers/ | +11 | 0 replies | |
| 19/20 | usb: xhci: improve xhci_port_missing_cas_quirk()drivers/ | +3 | 0 replies | |
| 20/20 | usb: xhci: use neutral helper when resuming portsdrivers/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/20] usb: xhci: rework xHCI Port macros
Rework xhci-port.h to standardize how USB Port register macros are defined and used.
Field macros are restricted to describing bit masks only, while the common FIELD_* helpers are used to extract, set, and update field values. This removes custom helpers and consolidates bitfield handling into a single, well-established mechanism.
Other changes include:
- Renaming macros to follow the xHCI specification.
- Relocating USB Port macros to xhci-port.h
- Updating bit field comments and format.
- Adding missing bits/macros.
Why are there 20 patches when many make similar changes?
The series is intentionally split to make review easier by keeping each patch focused and manageable. If preferred, the patches can be combined after review.
Niklas Neronin (20):
usb: xhci: replace bit shifts with the BIT() macro in xhci-port.h
usb: xhci: rework Port Speed macros
usb: xhci: rework Port Link State macros
usb: xhci: replace old Port macro prefix
usb: xhci: rework Port Indicator Control macro
usb: xhci: rework USB3 PORTPMSC macros
usb: xhci: rework USB2 PORTPMSC macros
usb: xhci: rework USB3 PORTLI macros
usb: xhci: rework USB2 PORTLI macros
usb: xhci: document USB3 PORTHLPMC register layout
usb: xhci: rework USB2 PORTHLPMC macros
usb: xhci: update port register bitfield comments for consistency
usb: xhci: rename port register macros to xHCI spec abbreviations
usb: xhci: replace magic numbers with Port macros
usb: xhci: update PORTSC aggregate macros
usb: xhci: consolidate PORTSC RW1CS bit macros
usb: xhci: relocate all port register macros to xhci-port.h
usb: xhci: preserve RW bits in xhci_port_state_to_neutral()
usb: xhci: improve xhci_port_missing_cas_quirk()
usb: xhci: use neutral helper when resuming ports
drivers/usb/dwc3/host.c | 2 +- drivers/usb/early/xhci-dbc.c | 4 +- drivers/usb/host/xhci-debugfs.c | 23 +-- drivers/usb/host/xhci-hub.c | 301 ++++++++++++++------------------ drivers/usb/host/xhci-pci.c | 4 +- drivers/usb/host/xhci-port.h | 299 +++++++++++++++++-------------- drivers/usb/host/xhci-ring.c | 25 ++- drivers/usb/host/xhci-tegra.c | 23 +-- drivers/usb/host/xhci.c | 30 ++-- drivers/usb/host/xhci.h | 65 ++++--- 10 files changed, 396 insertions(+), 380 deletions(-)
Signature · 1 line
2.50.1