kernel_samsung_a53x/drivers/usb/core
Alan Stern d065bb27d4 usb: Fix regression caused by invalid ep0 maxpacket in virtual SuperSpeed device
commit c78c3644b772e356ca452ae733a3c4de0fb11dc8 upstream.

A virtual SuperSpeed device in the FreeBSD BVCP package
(https://bhyve.npulse.net/) presents an invalid ep0 maxpacket size of 256.
It stopped working with Linux following a recent commit because now we
check these sizes more carefully than before.

Fix this regression by using the bMaxpacketSize0 value in the device
descriptor for SuperSpeed or faster devices, even if it is invalid.  This
is a very simple-minded change; we might want to check more carefully for
values that actually make some sense (for instance, no smaller than 64).

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Roger Whittaker <roger.whittaker@suse.com>
Closes: https://bugzilla.suse.com/show_bug.cgi?id=1220569
Link: https://lore.kernel.org/linux-usb/9efbd569-7059-4575-983f-0ea30df41871@suse.com/
Fixes: 59cf44575456 ("USB: core: Fix oversight in SuperSpeed initialization")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/4058ac05-237c-4db4-9ecc-5af42bdb4501@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 11:32:48 +01:00
..
buffer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
config.c usb: config: fix iteration issue in 'usb_get_bos_descriptor()' 2024-11-18 12:11:10 +01:00
devices.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
driver.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
endpoint.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hcd-pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hcd.c usb: core: Track SuperSpeed Plus GenXxY 2024-11-08 11:26:12 +01:00
hub.c usb: Fix regression caused by invalid ep0 maxpacket in virtual SuperSpeed device 2024-11-19 11:32:48 +01:00
hub.h USB: core: Add hub_get() and hub_put() routines 2024-11-19 09:22:42 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ledtrig-usbport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
message.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
notify.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
otg_productlist.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port.c usb: Disable USB3 LPM at shutdown 2024-11-19 11:32:23 +01:00
quirks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfs.c USB: core: Fix deadlock in usb_deauthorize_interface() 2024-11-19 09:22:43 +01:00
urb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usb-acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usb_host_certify.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00