mbox series

[0/3] usb: xhci: improve Endpoint Context Field 0x08 macros

Message ID 20250226151458.3871867-1-niklas.neronin@linux.intel.com (mailing list archive)
Headers show
Series usb: xhci: improve Endpoint Context Field 0x08 macros | expand

Message

Niklas Neronin Feb. 26, 2025, 3:14 p.m. UTC
Improve and utilize Endpoint Context Field 0x08 mask macros.

In multiple places, the Endpoint Context mask values are hardcoded or
include reserved bits. Replacing hardcoded masks with their correct
corresponding macros improves code readability, maintainability.

Niklas Neronin (3):
  usb: xhci: use correct TR Dequeue pointer mask
  usb: xhci: improve TR Dequeue Pointer macro
  usb: xhci: replace hardcoded Endpoint context masks with corresponding
    macros

 drivers/usb/host/xhci-ring.c | 13 +++++++------
 drivers/usb/host/xhci.h      |  3 ++-
 2 files changed, 9 insertions(+), 7 deletions(-)