Re: [PATCH] usb: gadget: composite: unlock spinlock before usb_gadget_disconnect()

2014-06-19 Thread Felipe Balbi
On Fri, Jun 13, 2014 at 11:36:24AM +, David Laight wrote: From: Robert Baldyga usb_gadget_disconnect() shouldn't be called under spinlock to avoid spinlock recursion. Function usb_gadget_disconnect() calls pullup(), which is callback from UDC driver, usually calling

[PATCH] usb: gadget: composite: unlock spinlock before usb_gadget_disconnect()

2014-06-13 Thread Robert Baldyga
usb_gadget_disconnect() shouldn't be called under spinlock to avoid spinlock recursion. Function usb_gadget_disconnect() calls pullup(), which is callback from UDC driver, usually calling composite_disconnect(). This function wants to lock spinlock used in usb_function_deactivate() causing

RE: [PATCH] usb: gadget: composite: unlock spinlock before usb_gadget_disconnect()

2014-06-13 Thread David Laight
From: Robert Baldyga usb_gadget_disconnect() shouldn't be called under spinlock to avoid spinlock recursion. Function usb_gadget_disconnect() calls pullup(), which is callback from UDC driver, usually calling composite_disconnect(). This function wants to lock spinlock used in