linux-stable/drivers/usb/usbip
Shuah Khan 7344a8a801 usbip:vhci_hcd USB port can get stuck in the disabled state
[ Upstream commit 66cce9e73e ]

When a remote usb device is attached to the local Virtual USB
Host Controller Root Hub port, the bound device driver may send
a port reset command.

vhci_hcd accepts port resets only when the device doesn't have
port address assigned to it. When reset happens device is in
assigned/used state and vhci_hcd rejects it leaving the port in
a stuck state.

This problem was found when a blue-tooth or xbox wireless dongle
was passed through using usbip.

A few drivers reset the port during probe including mt76 driver
specific to this bug report. Fix the problem with a change to
honor reset requests when device is in used state (VDEV_ST_USED).

Reported-and-tested-by: Michael <msbroadf@gmail.com>
Suggested-by: Michael <msbroadf@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210819225937.41037-1-skhan@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:40:33 +02:00
..
Kconfig
Makefile
stub.h
stub_dev.c usbip: stub-dev synchronize sysfs code paths 2021-04-14 08:42:03 +02:00
stub_main.c
stub_rx.c
stub_tx.c
usbip_common.c
usbip_common.h usbip: add sysfs_lock to synchronize sysfs code paths 2021-04-14 08:42:03 +02:00
usbip_event.c usbip: synchronize event handler with sysfs code paths 2021-04-14 08:42:03 +02:00
vhci.h
vhci_hcd.c usbip:vhci_hcd USB port can get stuck in the disabled state 2021-09-18 13:40:33 +02:00
vhci_rx.c
vhci_sysfs.c usbip: add sysfs_lock to synchronize sysfs code paths 2021-04-14 08:42:03 +02:00
vhci_tx.c
vudc.h
vudc_dev.c usbip: vudc synchronize sysfs code paths 2021-04-14 08:42:03 +02:00
vudc_main.c
vudc_rx.c
vudc_sysfs.c usbip: vudc: fix missing unlock on error in usbip_sockfd_store() 2021-05-14 09:50:19 +02:00
vudc_transfer.c
vudc_tx.c