]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: xhci: rework Event Ring Segment Table Address mask
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Thu, 15 May 2025 13:56:16 +0000 (16:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 10:35:33 +0000 (12:35 +0200)
commit74d7a757e8bcb753850c5e379c087c8424528f6a
tree2f74fb3e7edc2ce01b0932782189ea33a1ec600b
parent7c6df26c3be7b1806cd2f2aad8fd4a5329d9145d
usb: xhci: rework Event Ring Segment Table Address mask

Event Ring Segment Table Base Address Register contain two fields:
 - Bits 5:0: RsvdP (Reserved and Preserved)
 - Bits 63:6: Event Ring Segment Table Base Address

Currently, an inverted RsvdP mask (ERST_BASE_RSVDP) is used to extract
bits 63:6. Replaces the inverted mask with a non-inverted mask,
'ERST_BASE_ADDRESS_MASK', which makes the code easier to read.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250515135621.335595-20-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.h