[PATCH v2] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-23 Thread Guido Trentalancia
Hello again. On lun, 2016-03-21 at 09:36 -0400, Greg KH wrote: > On Sun, Mar 20, 2016 at 06:57:30PM +0100, Guido Trentalancia wrote: > > > > Hello Greg ! > > > > On dom, 2016-03-20 at 10:34 -0700, Greg KH wrote: > > > > > > On Sun, Mar 20,

Re: [PATCH] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-21 Thread Guido Trentalancia
study on typical duration of EMI inside buildings... In the meanwhile, I believe 1000 milliseconds (plus configurability) to be safe. Regards, Guido Il 21 marzo 2016 16:42:14 CET, Guido Trentalancia <gu...@trentalancia.net> ha scritto: >Hello Alan, > >thanks for getting back on th

Re: [PATCH] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-21 Thread Guido Trentalancia
Hello Alan, thanks for getting back on this... Il 21 marzo 2016 16:01:17 CET, Alan Stern <st...@rowland.harvard.edu> ha scritto: >On Sun, 20 Mar 2016, Guido Trentalancia wrote: > >> Hello. >> >> Considering that EM interference can last for a while (gene

Re: [PATCH] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-21 Thread Guido Trentalancia
e patch so that it correctly documents Documentation/kernel-parameters.txt. Regards, Guido  Il 21 marzo 2016 09:52:39 CET, Oliver Neukum <oneu...@suse.com> ha scritto: >On Sun, 2016-03-20 at 18:09 +0100, Guido Trentalancia wrote: >> Hello. >> >> Considering that EM interferen

Re: [PATCH] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-20 Thread Guido Trentalancia
Hello Greg ! On dom, 2016-03-20 at 10:34 -0700, Greg KH wrote: > On Sun, Mar 20, 2016 at 06:09:57PM +0100, Guido Trentalancia wrote: > >  > > [ 1295.575679] usb 6-2: FTDI USB Serial Device converter now > > attached > > to ttyUSB1 > > [ 1302.204285] usb usb6-

[PATCH] usb: Wait before re-enabling a port that has been disabled due to EMI

2016-03-20 Thread Guido Trentalancia
to the usbcore module to wait a specified amount of time (in milliseconds) before trying to re-enable a USB port that has been previously disabled by the hub (possibly due to EMI). Signed-off-by: Guido Trentalancia <gu...@trentalancia.net> ---  drivers/usb/core/hub.c |8  1 file chan