lkml.org 
[lkml]   [2009]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 70/79] tty: Char: mxser, use THRE for ASPP_OQUEUE ioctl
    Date
    From: Jiri Slaby <jirislaby@gmail.com>

    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>
    ---
    drivers/char/mxser.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    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();

    --
    1.6.4.2


    \
     
     \ /
      Last update: 2009-09-20 00:15    [W:0.036 / U:0.584 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site