serial: omap: improve RS-485 performance
authorPhilippe Proulx <philippe.proulx@savoirfairelinux.com>
Wed, 23 Oct 2013 22:49:58 +0000 (18:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 23:34:11 +0000 (16:34 -0700)
commit018e7448f2b2beba4a58f4c7fe99a5b32542be4c
tree0f0304d2b98ba78cdad56dde29dbb972eda76c30
parent68357c7d3f0a5930b48dcbe6d10e5324fdbd8c7a
serial: omap: improve RS-485 performance

If RS-485 is enabled, make the OMAP UART fire THR interrupts when both
TX FIFO and TX shift register are empty instead of polling the
equivalent status bit. This removes the burst of interrupt requests
seen at every end of transmission.

Also: the comment said that the TX FIFO trigger level was set at 16
characters when it's 32 in reality.

Signed-off-by: Philippe Proulx <philippe.proulx@savoirfairelinux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c