Skip to contentSkip to conversation

usbip: Fix USB device hang due to wrong enabling of scatter-gather

PATCH In review Yuyang Du 2 participants 2 messages Nov 30, 2017

Subsystems (2)
lore
Share & tools
lore

Yuyang Du

author
#0 lore raw

PATCH 1/1 usbip: Fix USB device hang due to wrong enabling of scatter-gather

The previous USB3 SuperSpeed enabling patches mistakenly enabled URB scatter-gather chaining, which is actually not supported by the VHCI HCD. This patch fixes that.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=197867

Fixes 03cd00d538a6feb ("usbip: vhci-hcd: Set the vhci structure up to work")
---
 drivers/usb/usbip/vhci_hcd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/usbip/vhci_hcd.c +0 -1
index 713e941..6b3278c 100644
@@ -1098,7 +1098,6 @@ static int hcd_name_to_id(const char *name)
 static int vhci_setup(struct usb_hcd *hcd)
 {
 	struct vhci *vhci = *((void **)dev_get_platdata(hcd->self.controller));
-	hcd->self.sg_tablesize = ~0;
 	if (usb_hcd_is_primary_hcd(hcd)) {
 		vhci->vhci_hcd_hs = hcd_to_vhci_hcd(hcd);
 		vhci->vhci_hcd_hs->vhci = vhci;
Signature · 1 line
2.7.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 17 lines · Yuyang Du

The previous USB3 SuperSpeed enabling patches mistakenly enabled URB scatter-gather chaining, which is actually not supported by the VHCI HCD. This patch fixes that.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=197867

Fixes 03cd00d538a6feb ("usbip: vhci-hcd: Set the vhci structure up to work")
 drivers/usb/usbip/vhci_hcd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/usbip/vhci_hcd.c +0 -0
index 713e941..6b3278c 100644

drivers/usb/usbip/vhci_hcd.c static int hcd_name_to_id(const char *name) · line 1103

Quoted 7 lines
drivers/usb/usbip/vhci_hcd.c +0 -1
@@ -1098,7 +1098,6 @@ static int hcd_name_to_id(const char *name)
 static int vhci_setup(struct usb_hcd *hcd)
 {
 	struct vhci *vhci = *((void **)dev_get_platdata(hcd->self.controller));
-	hcd->self.sg_tablesize = ~0;
 	if (usb_hcd_is_primary_hcd(hcd)) {
 		vhci->vhci_hcd_hs = hcd_to_vhci_hcd(hcd);
 		vhci->vhci_hcd_hs->vhci = vhci;

This need to go into stable as well. It applies to 4.14

thanks,
-- Shuah