tty: amba-pl011: Add un/throttle support
authorPhil Elwell <phil@raspberrypi.org>
Fri, 24 Jan 2020 11:38:28 +0000 (11:38 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:48 +0000 (16:03 +0000)
commit159f4c6402fadc30c984cc13e6e19e7d233a77b9
treeda05cc77cf5ab87f8106cffeaba6af6589e6ef2e
parenta9cec6254f8d3af3483c4b50b647450bd332d708
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