mirror of https://gitee.com/openkylin/linux.git
serial: txx9: drop low-latency workaround
Commitf5ee56cc18
("[PATCH] txx9 serial update") worked around the infamous low_latency behaviour of tty_flip_buffer_push() by simply dropping and reacquiring the port lock in the interrupt handler. Since commita9c3f68f3c
("tty: Fix low_latency BUG"), tty_flip_buffer_push() always schedules a work item to push data to the line discipline and there's no need to keep any low_latency hacks around. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210421095509.3024-22-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f306226ee5
commit
38616c225e
|
@ -330,9 +330,9 @@ receive_chars(struct uart_txx9_port *up, unsigned int *status)
|
|||
up->port.ignore_status_mask = next_ignore_status_mask;
|
||||
disr = sio_in(up, TXX9_SIDISR);
|
||||
} while (!(disr & TXX9_SIDISR_UVALID) && (max_count-- > 0));
|
||||
spin_unlock(&up->port.lock);
|
||||
|
||||
tty_flip_buffer_push(&up->port.state->port);
|
||||
spin_lock(&up->port.lock);
|
||||
|
||||
*status = disr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue