]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: uartps: Add a timeout to the tx empty wait
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Fri, 24 May 2019 09:11:29 +0000 (14:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 17:08:32 +0000 (19:08 +0200)
commit277375b864e8147975b064b513f491e2a910e66a
tree17834ba1b86bda8da380cf3711507f78022c0749
parent107475685abfdee504bb0ef4824f15797f6d2d4d
serial: uartps: Add a timeout to the tx empty wait

In case the cable is not connected then the target gets into
an infinite wait for tx empty.
Add a timeout to the tx empty wait.

Reported-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c