[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210721094922.15642-1-msbroadf@gmail.com>
Date: Wed, 21 Jul 2021 19:49:22 +1000
From: Michael Broadfoot <msbroadf@...il.com>
To: valentina.manea.m@...il.com, shuah@...nel.org,
gregkh@...uxfoundation.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Michael Broadfoot <msbroadf@...il.com>
Subject: [PATCH] vhci_hcd: Always re-enable a USB Port after reset
A (virtual) usb port can getting stuck in a disabled state on reset
Always re-enable a usb port regardless of if its addressed or not
Signed-off-by: Michael Broadfoot <msbroadf@...il.com>
---
drivers/usb/usbip/vhci_hcd.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/usb/usbip/vhci_hcd.c b/drivers/usb/usbip/vhci_hcd.c
index 4ba6bcdaa8e9..cea3781d04e6 100644
--- a/drivers/usb/usbip/vhci_hcd.c
+++ b/drivers/usb/usbip/vhci_hcd.c
@@ -455,15 +455,12 @@ static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
vhci_hcd->port_status[rhport] &= ~(1 << USB_PORT_FEAT_RESET);
vhci_hcd->re_timeout = 0;
- if (vhci_hcd->vdev[rhport].ud.status ==
- VDEV_ST_NOTASSIGNED) {
usbip_dbg_vhci_rh(
" enable rhport %d (status %u)\n",
rhport,
vhci_hcd->vdev[rhport].ud.status);
vhci_hcd->port_status[rhport] |=
USB_PORT_STAT_ENABLE;
- }
if (hcd->speed < HCD_USB3) {
switch (vhci_hcd->vdev[rhport].speed) {
--
2.30.2
Powered by blists - more mailing lists