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(-) -- 2.42.0