diff options
| author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2020-06-24 16:59:45 +0300 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2020-06-30 15:38:01 -0400 |
| commit | e52e7a0239425ab7f4c573af109784246753dd49 (patch) | |
| tree | 29ef0cfb16b766e218729c56fd109655b4925eab | |
| parent | 6ea5bc874f07e6615f685cdf5d6255758f312479 (diff) | |
| download | linux-e52e7a0239425ab7f4c573af109784246753dd49.tar.gz linux-e52e7a0239425ab7f4c573af109784246753dd49.tar.bz2 linux-e52e7a0239425ab7f4c573af109784246753dd49.zip | |
xhci: Fix incorrect EP_STATE_MASK
commit dceea67058fe22075db3aed62d5cb62092be5053 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/usb/host/xhci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index db1af99d53bd..8b52a7773bc8 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -718,7 +718,7 @@ struct xhci_ep_ctx { * 4 - TRB error * 5-7 - reserved */ -#define EP_STATE_MASK (0xf) +#define EP_STATE_MASK (0x7) #define EP_STATE_DISABLED 0 #define EP_STATE_RUNNING 1 #define EP_STATE_HALTED 2 |
