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.

xhci: Fix incorrect EP_STATE_MASK

EP_STATE_MASK should be 0x7 instead of 0xf

xhci spec 6.2.3 shows that the EP state field in the endpoint context data
structure consist of bits [2:0].
The old value included a bit from the next field which fortunately is a
RsvdZ region. So hopefully this hasn't caused too much harm

Cc: stable@vger.kernel.org
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200624135949.22611-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mathias Nyman and committed by
Greg Kroah-Hartman
dceea670 d0b78265

+1 -1
+1 -1
drivers/usb/host/xhci.h
··· 716 716 * 4 - TRB error 717 717 * 5-7 - reserved 718 718 */ 719 - #define EP_STATE_MASK (0xf) 719 + #define EP_STATE_MASK (0x7) 720 720 #define EP_STATE_DISABLED 0 721 721 #define EP_STATE_RUNNING 1 722 722 #define EP_STATE_HALTED 2