aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2011-08-25 09:12:08 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-25 12:00:42 -0400
commit0b058353abfcdba4403af60f06998da590ebeffe (patch)
tree6e4012e7b9f99b2772849edb15b65c1e3a8e2fed /drivers/isdn
parent424cc0391222695225632a3f2ccb0aed3e57b2e5 (diff)
TTY: use tty_wait_until_sent_from_close in other drivers
Let's use the newly added helper to avoid stalls in drivers which are not yet ported to tty_port helpers. Those which are broken (call tty_wait_until_sent with irqs disabled) are left untouched. They are in a deeper trouble than we are trying to solve here. This includes amiserial, 68328serial, 68360serial and crisv10. 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/isdn')
-rw-r--r--drivers/isdn/i4l/isdn_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
index d8504279e502..e5546cb3ac69 100644
--- a/drivers/isdn/i4l/isdn_tty.c
+++ b/drivers/isdn/i4l/isdn_tty.c
@@ -1693,7 +1693,7 @@ isdn_tty_close(struct tty_struct *tty, struct file *filp)
1693 * line status register. 1693 * line status register.
1694 */ 1694 */
1695 if (info->flags & ISDN_ASYNC_INITIALIZED) { 1695 if (info->flags & ISDN_ASYNC_INITIALIZED) {
1696 tty_wait_until_sent(tty, 3000); /* 30 seconds timeout */ 1696 tty_wait_until_sent_from_close(tty, 3000); /* 30 seconds timeout */
1697 /* 1697 /*
1698 * Before we drop DTR, make sure the UART transmitter 1698 * Before we drop DTR, make sure the UART transmitter
1699 * has completely drained; this is especially 1699 * has completely drained; this is especially