diff options
author | Krzysztof Opasiak <kopasiak90@gmail.com> | 2017-01-19 20:55:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-12 08:41:49 +0300 |
commit | 6d0511ed15db30965f8a3be8f0733bb6efd2b95e (patch) | |
tree | 045153e9ec9d73aa43ad41c523524e0d370dac68 /drivers/sh | |
parent | d3acd94c0f79387b0d1855bdd4690f1596eb3f25 (diff) | |
download | linux-6d0511ed15db30965f8a3be8f0733bb6efd2b95e.tar.xz |
usb: gadget: f_hid: Use spinlock instead of mutex
commit 33e4c1a9987a1fc3b42c3b534100b5b006d55c61 upstream.
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.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions