From: Jiri Slaby Date: Thu, 10 Sep 2009 10:20:08 +0000 (+0200) Subject: tty: Char: mxser, use THRE for ASPP_OQUEUE ioctl X-Git-Tag: v2.6.32-rc1~627^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a75b7b68ef73685784781d6d2bc416b6dac20969;p=platform%2Fkernel%2Flinux-stable.git tty: Char: mxser, use THRE for ASPP_OQUEUE ioctl In moxa specific ASPP_OQUEUE ioctl command, they apparently want only know whether there is space in transmitter hold register. So switch UART_LSR_TEMT to UART_LSR_THRE in that specific case according to the change in 1.14 moxa drivers. Signed-off-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index e218ae2..5e28d39 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c @@ -1806,7 +1806,7 @@ static int mxser_ioctl(struct tty_struct *tty, struct file *file, lock_kernel(); len = mxser_chars_in_buffer(tty); - lsr = inb(info->ioaddr + UART_LSR) & UART_LSR_TEMT; + lsr = inb(info->ioaddr + UART_LSR) & UART_LSR_THRE; len += (lsr ? 0 : 1); unlock_kernel();