aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_port.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2011-08-25 09:12:07 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-25 12:00:41 -0400
commit424cc0391222695225632a3f2ccb0aed3e57b2e5 (patch)
treebe94826b93afa195f81b9f92fc2550b4a48fe4d0 /drivers/tty/tty_port.c
parenta57a7bf3fc7eff00f07eb9c805774d911a3f2472 (diff)
TTY: use tty_wait_until_sent_from_close in tty_port_close_start
Let's use the newly added helper to avoid stalls in drivers which are already ported to tty_port helpers. We have to ensure here, that there is no user of tty_port_close_start and tty_port_close which holds port->mutex (or other) lock over them. And sure, there is none. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/tty_port.c')
-rw-r--r--drivers/tty/tty_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c
index 33d37d230f8..ef9dd628ba0 100644
--- a/drivers/tty/tty_port.c
+++ b/drivers/tty/tty_port.c
@@ -350,7 +350,7 @@ int tty_port_close_start(struct tty_port *port,
350 tty_driver_flush_buffer(tty); 350 tty_driver_flush_buffer(tty);
351 if (test_bit(ASYNCB_INITIALIZED, &port->flags) && 351 if (test_bit(ASYNCB_INITIALIZED, &port->flags) &&
352 port->closing_wait != ASYNC_CLOSING_WAIT_NONE) 352 port->closing_wait != ASYNC_CLOSING_WAIT_NONE)
353 tty_wait_until_sent(tty, port->closing_wait); 353 tty_wait_until_sent_from_close(tty, port->closing_wait);
354 if (port->drain_delay) { 354 if (port->drain_delay) {
355 unsigned int bps = tty_get_baud_rate(tty); 355 unsigned int bps = tty_get_baud_rate(tty);
356 long timeout; 356 long timeout;