mbox series

[0/3] xhci rework real & fake ports

Message ID 20231128122524.286302-1-niklas.neronin@linux.intel.com (mailing list archive)
Headers show
Series xhci rework real & fake ports | expand

Message

Niklas Neronin Nov. 28, 2023, 12:25 p.m. UTC
This commit aims to remove the confusing real & fake port variables
and improve how slot ID is found using fake port.

Clarification on real and fake ports:
  - 'real port' refers to a unique hardware port number.
  - 'fake_port' refers to the port number within a port hub. Its only
    function is to facilitate the identification of the slot ID,
    this process is very inefficient.

Niklas Neronin (3):
  xhci: rework how real & fake ports are found
  xhci: replace real & fake port with pointer to root hub port
  xhci: save slot ID in struct 'xhci_port'

 drivers/usb/host/xhci-hub.c     | 69 ++++++---------------------------
 drivers/usb/host/xhci-mem.c     | 56 +++++++++++++-------------
 drivers/usb/host/xhci-mtk-sch.c | 14 +++----
 drivers/usb/host/xhci-pci.c     | 10 ++---
 drivers/usb/host/xhci-ring.c    | 11 ++----
 drivers/usb/host/xhci-trace.h   | 12 +++---
 drivers/usb/host/xhci.c         | 12 +++---
 drivers/usb/host/xhci.h         |  7 ++--
 8 files changed, 64 insertions(+), 127 deletions(-)