serial/8250: export serial8250_read_char
authorJeremy Kerr <jk@ozlabs.org>
Tue, 27 Mar 2018 03:48:25 +0000 (11:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 08:16:50 +0000 (10:16 +0200)
commitebbaf9ab9ebd69f42b286c7a67cc84571c3d947a
tree188d96c0710790f69f68f79cf09c30bb9c1a720e
parentc5f78b1fe4e5baf4c4ca30377c2d7e06e2e391ec
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>
drivers/tty/serial/8250/8250_port.c
include/linux/serial_8250.h