mxser: use tty_port xmit_buf helpers
authorJiri Slaby <jslaby@suse.cz>
Mon, 24 Jan 2022 07:14:25 +0000 (08:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jan 2022 13:54:48 +0000 (14:54 +0100)
commit92cc9d1d14e3ba8e82c99a4b4c90cce1db3c3fa9
tree7a798228a1af53a4a0616727f40678b843f2fff4
parentcd3a4907ee334b40d7aa880c7ab310b154fd5cd4
mxser: use tty_port xmit_buf helpers

For the mxser driver to use kfifo, use tty_port_alloc_xmit_buf() and
tty_port_free_xmit_buf() helpers in activate/shutdown, respectively.

As these calls have to be done in a non-atomic context, we have to move
them outside spinlock and make sure irq is really stopped after we write
to the ISR register.

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