Searched hist:"33 e4c1a9987a1fc3b42c3b534100b5b006d55c61" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_hid.c | diff 33e4c1a9987a1fc3b42c3b534100b5b006d55c61 Thu Jan 19 11:55:29 CST 2017 Krzysztof Opasiak <kopasiak90@gmail.com> usb: gadget: f_hid: Use spinlock instead of mutex
As IN request has to be allocated in set_alt() and released in disable() we cannot use mutex to protect it as we cannot sleep in those funcitons. Let's replace this mutex with a spinlock.
Cc: stable@vger.kernel.org Tested-by: David Lechner <david@lechnology.com> Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
|