]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xhci: sort out TRB Endpoint ID bitfield macros
authorMathias Nyman <mathias.nyman@linux.intel.com>
Wed, 26 Jun 2024 12:48:35 +0000 (15:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2024 14:08:06 +0000 (16:08 +0200)
commit36b1235a8ae79caacd6f2bbd7120ac7860cab734
treebf9dbc4a11418283bceeb88403fca9e8e3b9f0f4
parentb4c87bc5ce9292d494d9354e25cc8ea152fbcbbd
xhci: sort out TRB Endpoint ID bitfield macros

xhci macros that read and write endpoint ID bitfields of TRBs are mixing
the 1-based Endpoint ID as described in the xHCI specification, and
0-based endpoint index used by driver as an array index.

Sort this out by naming macros that deal with 1 based Endpoint ID fields
to *_EP_ID_*, and 0 based endpoint index values to *_EP_INDEX_*.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240626124835.1023046-22-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h