aboriginal

changeset 1715:bffb25915831 1.3.0

No longer need to revert this patch in 3.16, they fixed it.
author Rob Landley <rob@landley.net>
date Thu, 25 Dec 2014 21:46:31 -0600
parents bd277be2c77b
children 73b3dde1286d
files sources/patches/linux-unbreakppc.patch
diffstat 1 files changed, 0 insertions(+), 30 deletions(-) [+]
line diff
     1.1 --- a/sources/patches/linux-unbreakppc.patch	Thu Dec 25 19:51:25 2014 -0600
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,31 +0,0 @@
     1.4 -Reverse a commit that completely broke powerpc serial output.
     1.5 -
     1.6 -commit 717f3bbab3c7628736ef738fdbf3d9a28578c26c
     1.7 -Author: Seth Bollinger <sethb@digi.com>
     1.8 -Date:   Tue Mar 25 12:55:37 2014 -0500
     1.9 -
    1.10 -    serial_core: Fix conditional start_tx on ring buffer not empty
    1.11 -    
    1.12 -    If the serial_core ring buffer empties just as the tty layer receives
    1.13 -    an XOFF, then start_tx will never be called when the tty layer
    1.14 -    receives an XON as the serial_core ring buffer is empty.  This will
    1.15 -    possibly leave a few bytes trapped in the fifo for drivers that
    1.16 -    disable the transmitter when flow controlled.
    1.17 -    
    1.18 -    Signed-off-by: Seth Bollinger <sethb@digi.com>
    1.19 -    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    1.20 -
    1.21 -diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
    1.22 -index 2cf5649..dd1a7be 100644
    1.23 ---- a/drivers/tty/serial/serial_core.c
    1.24 -+++ b/drivers/tty/serial/serial_core.c
    1.25 -@@ -89,7 +89,8 @@ static void __uart_start(struct tty_struct *tty)
    1.26 - 	struct uart_state *state = tty->driver_data;
    1.27 - 	struct uart_port *port = state->uart_port;
    1.28 - 
    1.29 --	if (!tty->stopped && !tty->hw_stopped)
    1.30 -+	if (!uart_circ_empty(&state->xmit) && state->xmit.buf &&
    1.31 -+	    !tty->stopped && !tty->hw_stopped)
    1.32 - 		port->ops->start_tx(port);
    1.33 - }
    1.34 -