mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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 <jirislaby@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
502f295f6c
commit
a75b7b68ef
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue