usb: xhci: rework Event Ring Segment Table Size mask
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Thu, 15 May 2025 13:56:15 +0000 (16:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 10:35:33 +0000 (12:35 +0200)
commit7c6df26c3be7b1806cd2f2aad8fd4a5329d9145d
tree26217c203c01a4692a10ee1b0a451e23afee6b4c
parente1db856bd28891d70008880d7f1d3b8d1ea948fd
usb: xhci: rework Event Ring Segment Table Size mask

Event Ring Segment Table Size Register contain two fields:
 - Bits 15:0: Event Ring Segment Table Size
 - Bits 31:16: RsvdZ (Reserved and Zero)

The current mask 'ERST_SIZE_MASK' refers to the RsvdZ bits (31:16).
Change the mask to refer to bits 15:0, which are the Event Ring Segment
Table Size bits.

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-19-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