[PATCH 20/27] usb: r8a66597-hcd: Use setup_timer

2014-12-26 Thread Julia Lawall
Convert a call to init_timer and accompanying intializations of the timer's data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression t,f,d; @@ -init_timer(t);

[PATCH 23/27] usb: isp1760: Use setup_timer

2014-12-26 Thread Julia Lawall
Convert a call to init_timer and accompanying intializations of the timer's data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression t,f,d; @@ -init_timer(t);

[PATCH 10/27] xhci-mem: Use setup_timer

2014-12-26 Thread Julia Lawall
Convert a call to init_timer and accompanying intializations of the timer's data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression t,f,d; @@ -init_timer(t);

[PATCH 21/27] usb: oxu210hp-hcd: Use setup_timer

2014-12-26 Thread Julia Lawall
Convert a call to init_timer and accompanying intializations of the timer's data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression t,f,d; @@ -init_timer(t);

[PATCH 9/27] xhci: Use setup_timer

2014-12-26 Thread Julia Lawall
Convert a call to init_timer and accompanying intializations of the timer's data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression t,f,d; @@ -init_timer(t);

[PATCH 22/27] usb: sl811-hcd: Use setup_timer

2014-12-26 Thread Julia Lawall
Convert a call to init_timer and accompanying intializations of the timer's data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression t,f,d; @@ -init_timer(t);

[PATCH 0/27] Use setup_timer

2014-12-26 Thread Julia Lawall
These patches group a call to init_timer and initialization of the function and data fields into a call to setup_timer. Is there is no initialization of the data field before add_timer is called, the the data value is set to 0UL. If the data value has a cast to something other than unsigned

Re: [PATCH] USB: gadget: udc: atmel: fix possible oops when unloading module

2014-12-26 Thread Felipe Balbi
Hi, On Wed, Dec 24, 2014 at 09:14:53AM +0800, Wu, Songjun wrote: 在 12/24/2014 00:24, Felipe Balbi 写道: On Mon, Dec 22, 2014 at 05:26:14PM +0800, Songjun Wu wrote: When unloading the module, the urb request will be dequeued and the completion routine will be excuted. If no urb packet, the

Re: Query regarding root hub reset

2014-12-26 Thread Alan Stern
On Thu, 25 Dec 2014, Peter Chen wrote: Thanks for explaining it, but I am still not understand why we need unbind the interface when we go to turn the port power off or reset the port if the port is owned by kernel. I often need to do continual plug in/out usb device test, in order to emulate

[PATCH] hid: Add a new id 0x501a for Genius MousePen i608X

2014-12-26 Thread Giedrius Statkevičius
New Genius MousePen i608X devices have a new id 0x501a instead of the old 0x5011 so add a new #define with _2 appended and change required places. The remaining two checkpatch warnings about line length being over 80 characters are present in the original files too and this patch was made in the

Re: Query regarding root hub reset

2014-12-26 Thread Deepak Das
On Friday 26 December 2014 09:15 PM, Alan Stern wrote: On Thu, 25 Dec 2014, Peter Chen wrote: Thanks for explaining it, but I am still not understand why we need unbind the interface when we go to turn the port power off or reset the port if the port is owned by kernel. I often need to do

Re: [PATCH 1/4] usb: dwc3: gadget: Fix TRB preparation during SG

2014-12-26 Thread Amit Virdi
On Mon, Dec 22, 2014 at 9:34 PM, Felipe Balbi ba...@ti.com wrote: On Fri, Dec 19, 2014 at 12:40:15PM +0530, Amit Virdi wrote: When scatter gather is used, multiple TRBs are prepared from one DWC3 request. Hence, we must set the 'last' flag when the SG is last as well as the TRB is last. The

[PATCH] USB: serial: cp210x: Correcting IDs for production CEL MeshConnect USB Stick

2014-12-26 Thread Preston Fick
Fixing typo for MeshConnect IDs. The original PID (0x8875) is not in production and is not needed. Instead it has been changed to the official production PID (0x8857). Signed-off-by: Preston Fick pff...@gmail.com --- drivers/usb/serial/cp210x.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 2/4] usb: dwc3: gadget: Stop TRB preparation after limit is reached

2014-12-26 Thread Amit Virdi
On Mon, Dec 22, 2014 at 9:36 PM, Felipe Balbi ba...@ti.com wrote: On Fri, Dec 19, 2014 at 12:40:16PM +0530, Amit Virdi wrote: When SG is used, there are two loops iterating to prepare TRBs: - Outer loop over the request_list - Inner loop over the SG list The driver must stop preparing TRBs