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)
commit6bf789672ee8387fda08af1deeffd12126e60659
treec17f3319344c99f9de760df1589c4a8fc9fdde53
parentda64c27d3c93ee9f89956b9de86c4127eb244494
Revert "serial: omap: unlock the port lock"

This reverts commit 0324a821029e1f54e7a7f8fed48693cfce42dc0e.

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