Re: usbip port number limits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> De: "Yuyang Du" <yuyang.du@xxxxxxxxxxxxxxx>
> Para: "Juan Zea" <juan.zea@xxxxxxxxxx>
> CC: "Shuah Khan" <shuahkh@xxxxxxxxxxxxxxx>, shuah@xxxxxxxxxx, "Bjørn Mork" <bjorn@xxxxxxx>, linux-usb@xxxxxxxxxxxxxxx, "Valentina Manea" <valentina.manea.m@xxxxxxxxx>
> Enviados: Viernes, 24 de Noviembre 2017 8:22:44
> Asunto: Re: usbip port number limits
> 
> On Wed, Nov 22, 2017 at 09:38:27AM +0100, Juan Zea wrote:
> > I don't come up with any more detail... anything I'm missing?
>  
> Hi Juan,
> 
> Thank you so much for your patience. Really appreciate it. 
> 
> I came up with the following patch, with which at my side the 
> BUG doesn't happen again with both a (low speed ) mouse and a
> (high speed) stick attached at the client over localhost server.
> 
> Would you be able to test it at your side?
> 
> I applied the patch right on top of the commit b891245bff7958
> ("usbip: vhci-hcd: Clean up the code by adding a new macro").
> Anyway, the patch is pretty trivial.
> 
> Thanks,
> Yuyang
> 

Hi Yuyang,

   The patch doesn't apply cleanly with the patch command, but given it is that simple I've changed it myself (I'm telling you just in case we're missing something).

   The fingerprint reader, usb stick and wacom tablet work :)

I've also checked the same patch can be applied to kernel master and it works. So... is that the solution?


Regards,
Juan

Juan Antonio Zea Herranz 
Proyectos y consultoría | Qindel Group 
E: juan.zea@xxxxxxxxxx 
T: +34 91 766 24 21 
M: +34 637 74 63 09 
W: qindel.com 

----- Mensaje original -----

--

diff --git a/drivers/usb/usbip/vhci_hcd.c b/drivers/usb/usbip/vhci_hcd.c
index 64c3860..732edaf 100644
--- a/drivers/usb/usbip/vhci_hcd.c
+++ b/drivers/usb/usbip/vhci_hcd.c
@@ -1112,7 +1112,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux