serial/aspeed-vuart: Implement rx throttling
authorJeremy Kerr <jk@ozlabs.org>
Tue, 27 Mar 2018 03:48:26 +0000 (11:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 08:16:50 +0000 (10:16 +0200)
commit989983ea849d9421e8b9cd11f18e072fe00ea0d7
tree110e76ddfdf12ba344716ce5756a8a423ba092c1
parentebbaf9ab9ebd69f42b286c7a67cc84571c3d947a
serial/aspeed-vuart: Implement rx throttling

The aspeed VUART runs at LPC bus frequency, rather than being restricted
to a typical UART baud rate. This means that the VUART can receive a lot
of data, which can overrun tty flip buffers, and/or cause a large amount
of interrupt traffic.

This change implements the uart_port->throttle & unthrottle callbacks,
implemented by disabling the receiver line status & received data
available IRQs.

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_aspeed_vuart.c