serial: imx: get rid of unbounded busy-waiting loop
authorSergey Organov <sorganov@gmail.com>
Wed, 28 Aug 2019 18:37:51 +0000 (21:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:55 +0000 (12:43 +0200)
commit2eda5345e4ef61b35101b4fef58417a41d8d53fd
tree0b0cfa5dca79ed8ab82a0ca1f91a8e336c401bfa
parent8016c3da0cc263f257e802fae36482eaad2d04fa
serial: imx: get rid of unbounded busy-waiting loop

imx_set_termios(): remove busy-waiting "drain Tx FIFO" loop. Worse
yet, it was potentially unbounded wait due to RTS/CTS (hardware)
handshake.

Let user space ensure draining is done before termios change, if
draining is needed in the first place.

Signed-off-by: Sergey Organov <sorganov@gmail.com>
Link: https://lore.kernel.org/r/1567017475-11919-2-git-send-email-sorganov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c