tty: amba-pl011: Add un/throttle support
authorPhil Elwell <phil@raspberrypi.org>
Fri, 24 Jan 2020 11:38:28 +0000 (11:38 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:12:48 +0000 (19:12 +0000)
commitdd6173cf2c1b9fdbf14a685fbceaface1106bd98
tree4e39512f209e87d3e0ef798bc13d7eb1e676b2de
parent5303d18f1ed18b14e1a5762fb81548a2f6d3fb7e
tty: amba-pl011: Add un/throttle support

The PL011 driver lacks throttle and unthrottle methods. As a result,
sending more data to the Pi than it can immediately sink while CRTSCTS
is enabled causes a NULL pointer to be followed.

Add a throttle handler that disables the RX interrupts, and an
unthrottle handler that reenables them.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/tty/serial/amba-pl011.c