]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: f81232: change lock mechanism
authorPeter Hung <hpeter@gmail.com>
Tue, 17 Mar 2015 09:48:21 +0000 (17:48 +0800)
committerJohan Hovold <johan@kernel.org>
Fri, 27 Mar 2015 16:29:26 +0000 (17:29 +0100)
commit7139c932859f5b35b5a928b445e03f5a43610fa7
tree3340210ec92e0a07eabf2121aeb15572033fb2b2
parent8885078949fbb78c6be39ed2c653e4e883568e2f
USB: f81232: change lock mechanism

The original driver lock with spin_lock_irqsave()/spin_unlock_irqrestore()
because of it's maybe used in interrupt context f81232_process_read_urb().

We had remove it from previous patch "implement RX bulk-in EP", so we can
change it from busying loop spin_lock to sleepable mutex_lock.

Signed-off-by: Peter Hung <hpeter+linux_kernel@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/f81232.c