Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: xhci: drop xhci-caps.h dependence on xhci-ext-caps.h

Drop the dependency of xhci-caps.h on xhci-ext-caps.h by eliminating 2
instances where macros in xhci-caps.h were redefined from xhci-ext-caps.h.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20251119142417.2820519-22-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Niklas Neronin and committed by
Greg Kroah-Hartman
2282ab38 99369090

+2 -2
+2 -2
drivers/usb/host/xhci-caps.h
··· 6 6 7 7 /* hc_capbase - bitmasks */ 8 8 /* bits 7:0 - Capability Registers Length */ 9 - #define HC_LENGTH(p) XHCI_HC_LENGTH(p) 9 + #define HC_LENGTH(p) ((p) & 0xff) 10 10 /* bits 15:8 - Rsvd */ 11 11 /* bits 31:16 - Host Controller Interface Version Number */ 12 12 #define HC_VERSION(p) (((p) >> 16) & 0xffff) ··· 77 77 /* bits 15:12 - Max size for Primary Stream Arrays, 2^(n+1) */ 78 78 #define HCC_MAX_PSA(p) (1 << ((((p) >> 12) & 0xf) + 1)) 79 79 /* bits 31:16 - xHCI Extended Capabilities Pointer, from PCI base: 2^(n) */ 80 - #define HCC_EXT_CAPS(p) XHCI_HCC_EXT_CAPS(p) 80 + #define HCC_EXT_CAPS(p) (((p) >> 16) & 0xffff) 81 81 82 82 /* DBOFF - db_off - bitmasks */ 83 83 /* bits 1:0 - Rsvd */