]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "serial: omap: unlock the port lock"
authorFelipe Balbi <balbi@ti.com>
Wed, 23 Apr 2014 14:58:27 +0000 (09:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Apr 2014 23:16:33 +0000 (16:16 -0700)
commit4baad9a0764132d3e46614331e2037b646569b2c
treec17f3319344c99f9de760df1589c4a8fc9fdde53
parent29f1fd8b45e3268c3e1d2c4f44cea6ff4915874b
Revert "serial: omap: unlock the port lock"

This reverts commit d65d0222121e61d44c7d794019479dda061acb51.

That commit tried to fix a deadlock problem when using
hci_ldisc, but it turns out the bug was in hci_ldsic
all along where it was calling ->write() from within
->write_wakeup() callback.

The problem is that ->write_wakeup() was called with
port lock held and ->write() tried to grab the same
port lock.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c