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 enumeration issue when setting max packet size for FS devices.

Unable to complete the enumeration of a USB TV Tuner device.

Per XHCI spec (4.6.5), the EP state field of the input context shall
be cleared for a set address command. In the special case of an FS
device that has "MaxPacketSize0 = 8", the Linux XHCI driver does
not do this before evaluating the context. With an XHCI controller
that checks the EP state field for parameter context error this
causes a problem in cases such as the device getting reset again
after enumeration.

When that field is cleared, the problem does not occur.

This was found and fixed by Sasi Kumar.

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

authored by

Al Cooper and committed by
Greg Kroah-Hartman
a73d9d9c dceea670

+1
+1
drivers/usb/host/xhci.c
··· 1430 1430 xhci->devs[slot_id]->out_ctx, ep_index); 1431 1431 1432 1432 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); 1433 + ep_ctx->ep_info &= cpu_to_le32(~EP_STATE_MASK);/* must clear */ 1433 1434 ep_ctx->ep_info2 &= cpu_to_le32(~MAX_PACKET_MASK); 1434 1435 ep_ctx->ep_info2 |= cpu_to_le32(MAX_PACKET(max_packet_size)); 1435 1436