]> git.baikalelectronics.ru Git - kernel.git/commit
mxser: extract TX empty check from mxser_wait_until_sent()
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Nov 2021 07:31:17 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:33:22 +0000 (18:33 +0100)
commitee47c5c095c543f0c5ac504e50937b59c4c5ff45
tree9089b85181bc5880aa410e95dff23ea16f3499de
parent412b0f1f838f5daae49bd7ca7581bfb16c1dd13d
mxser: extract TX empty check from mxser_wait_until_sent()

And move it to new mxser_tx_empty(), because:
1) it simplifies the code (esp. the locking), and
2) serial_core needs such a hook anyway, so have it ready.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211118073125.12283-12-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c