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, 1 Jul 2020 15:33:17 +0000 (16:33 +0100)
commit86c00b4c929c3f272816dcde25cd62eb42788816
tree1ffa1a235d2b23095ab0631177672a92ff2a77ee
parent89c275d69ded3a181c5178106c5f210447212828
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