]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: 8250_exar: Clear buffer before shutdown
authorRobert Middleton <robert.middleton@rm5248.com>
Thu, 1 Aug 2019 14:56:40 +0000 (10:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:50 +0000 (12:43 +0200)
commit47b1747f705e90d8197b77207e19c0ec67c16958
tree7fd337e9500be261097c95317af73f898432e552
parentb2b4b8ed3c06e5fc3586234b2dd2bb802b941261
serial: 8250_exar: Clear buffer before shutdown

When closing and shutting down the exar serial port, if the chip
has not finished sending all of the data in its buffer, the
remaining bytes will be lost.  Hold off on the shutdown until the
bytes have all been sent.

Signed-off-by: Robert Middleton <robert.middleton@rm5248.com>
Link: https://lore.kernel.org/r/20190801145640.26080-1-robert.middleton@rm5248.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c