]> git.baikalelectronics.ru Git - kernel.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)
commitd3677568a70fdace222b870d237bd0216bc8f5e2
tree7fd337e9500be261097c95317af73f898432e552
parentbc5db694d6e104f7f54d138d3ea65c262cc98a3f
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