summaryrefslogtreecommitdiffstats
path: root/include/linux/serial_8250.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2018-03-27 11:48:25 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-23 10:16:50 +0200
commitebbaf9ab9ebd69f42b286c7a67cc84571c3d947a (patch)
tree188d96c0710790f69f68f79cf09c30bb9c1a720e /include/linux/serial_8250.h
parentc5f78b1fe4e5baf4c4ca30377c2d7e06e2e391ec (diff)
downloadlinux-stable-ebbaf9ab9ebd69f42b286c7a67cc84571c3d947a.tar.gz
linux-stable-ebbaf9ab9ebd69f42b286c7a67cc84571c3d947a.tar.bz2
linux-stable-ebbaf9ab9ebd69f42b286c7a67cc84571c3d947a.zip
serial/8250: export serial8250_read_char
Currently, we export serial8250_rx_chars, which does a whole bunch of reads from the 8250 data register, without any form of flow control between reads. An upcoming change to the aspeed vuart driver implements more fine-grained flow control in the interrupt handler, requiring character-at-a-time control over the rx path. This change exports serial8250_read_char to allow this. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Tested-by: Eddie James <eajames@linux.vnet.ibm.com> Tested-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_8250.h')
-rw-r--r--include/linux/serial_8250.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/serial_8250.h b/include/linux/serial_8250.h
index a27ef5f56431..76b9db71e489 100644
--- a/include/linux/serial_8250.h
+++ b/include/linux/serial_8250.h
@@ -163,6 +163,7 @@ extern void serial8250_do_set_mctrl(struct uart_port *port, unsigned int mctrl);
extern int fsl8250_handle_irq(struct uart_port *port);
int serial8250_handle_irq(struct uart_port *port, unsigned int iir);
unsigned char serial8250_rx_chars(struct uart_8250_port *up, unsigned char lsr);
+void serial8250_read_char(struct uart_8250_port *up, unsigned char lsr);
void serial8250_tx_chars(struct uart_8250_port *up);
unsigned int serial8250_modem_status(struct uart_8250_port *up);
void serial8250_init_port(struct uart_8250_port *up);