usb: xhci: Host Controller Capability Registers rework
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest13 patches 1 replyIn review
- v113 patches 3 repliesSuperseded
Changes in v2 from the cover letter
* Change xhci_ist_in_microseconds() argument to 'xhci'.
* Rename xhci_ist_in_microseconds() to xhci_ist_microframes().
* Revert to (1 << x) from BIT() operaion in HCC_MAX_PSA() macro.
* Added macro changes to DWC3 driver.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | usb: xhci: remove deprecated TODO commentdrivers/ | +0 | 0 replies | |
| 2/13 | usb: xhci: remove unused trace operation and argumentdrivers/ drivers/ | +8 | 0 replies | |
| 3/13 | usb: xhci: use cached HCSPARAMS1 valuedrivers/ | +1 | 0 replies | |
| 4/13 | usb: xhci: simplify handling of Structural Parameters 1 valuesdrivers/ drivers/ drivers/ +4 more | +33 | 0 replies | |
| 5/13 | usb: xhci: limit number of ports to 127drivers/ drivers/ drivers/ | +7 | 0 replies | |
| 6/13 | usb: xhci: limit number of interrupts to 128drivers/ drivers/ | +12 | 0 replies | |
| 7/13 | usb: xhci: improve xhci-caps.h commentsdrivers/ | +57 | 0 replies | |
| 8/13 | usb: xhci: simplify Isochronous Scheduling Threshold handlingdrivers/ drivers/ | +20 | 0 replies | |
| 9/13 | usb: xhci: simplify Max Scratchpad buffer macrosdrivers/ | +3 | 0 replies | |
| 10/13 | usb: xhci: drop xhci-caps.h dependence on xhci-ext-caps.hdrivers/ | +2 | 0 replies | |
| 11/13 | usb: xhci: standardize single bit-field macrosdrivers/ drivers/ drivers/ +4 more | +38 | 0 replies | |
| 12/13 | usb: xhci: standardize multi bit-field macrosdrivers/ drivers/ drivers/ +9 more | +55 | 0 replies | |
| 13/13 | usb: xhci: use 64-bit Addressing Capability macrodrivers/ | +1 | 0 replies |
Reviews trailers per patch
1 of 13 patches has a Reviewed-by or Acked-by.
| Patch | Sakari Ailus |
|---|---|
| 1/13 | |
| 2/13 | |
| 3/13 | |
| 4/13 | |
| 5/13 | |
| 6/13 | |
| 7/13 | |
| 8/13 | |
| 9/13 | |
| 10/13 | |
| 11/13 | R-b |
| 12/13 | |
| 13/13 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/13] usb: xhci: Host Controller Capability Registers rework
This patch series focuses on improving the definitions and organization of the Host Controller Capability Registers macros in the xhci driver. It is the first step in a larger effort to clean up and restructure the xhci header files for better readability and maintainability.
Because the Structural Parameters 1 register (part of the HC Capability Registers) relies heavily on xhci-caps.h, a few related patches from another ongoing rework have been included here as well. These address the handling of Max Ports and Max Interrupters values.
The Max Slots handling will follow the same pattern in a future series. That change is more involved and will be submitted separately.
v2 changes:
* Change xhci_ist_in_microseconds() argument to 'xhci'.
* Rename xhci_ist_in_microseconds() to xhci_ist_microframes().
* Revert to (1 << x) from BIT() operaion in HCC_MAX_PSA() macro.
* Added macro changes to DWC3 driver.
Niklas Neronin (13):
usb: xhci: remove deprecated TODO comment
usb: xhci: remove unused trace operation and argument
usb: xhci: use cached HCSPARAMS1 value
usb: xhci: simplify handling of Structural Parameters 1 values
usb: xhci: limit number of ports to 127
usb: xhci: limit number of interrupts to 128
usb: xhci: improve xhci-caps.h comments
usb: xhci: simplify Isochronous Scheduling Threshold handling
usb: xhci: simplify Max Scratchpad buffer macros
usb: xhci: drop xhci-caps.h dependence on xhci-ext-caps.h
usb: xhci: standardize single bit-field macros
usb: xhci: standardize multi bit-field macros
usb: xhci: use 64-bit Addressing Capability macro
drivers/usb/dwc3/host.c | 5 +- drivers/usb/host/xhci-caps.h | 188 ++++++++++++++++++-------------- drivers/usb/host/xhci-debugfs.c | 20 ++-- drivers/usb/host/xhci-histb.c | 2 +- drivers/usb/host/xhci-hub.c | 12 +- drivers/usb/host/xhci-mem.c | 41 +++---- drivers/usb/host/xhci-mtk.c | 4 +- drivers/usb/host/xhci-pci.c | 6 +- drivers/usb/host/xhci-plat.c | 2 +- drivers/usb/host/xhci-ring.c | 40 ++++--- drivers/usb/host/xhci-tegra.c | 5 +- drivers/usb/host/xhci-trace.h | 20 +--- drivers/usb/host/xhci.c | 57 +++++----- drivers/usb/host/xhci.h | 16 ++- 14 files changed, 215 insertions(+), 203 deletions(-)
Signature · 1 line
2.50.1