]> git.baikalelectronics.ru Git - kernel.git/commit
mxser: store FCR state in mxser_port::FCR
authorJiri Slaby <jslaby@suse.cz>
Wed, 22 Sep 2021 07:59:38 +0000 (09:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 12:08:09 +0000 (14:08 +0200)
commitfe23cccf0c37b167bc47dccadb42e23cadeb2d14
tree9e1d630daacba7315372761df1bb8aad84e5c51a
parentd920d89a6201bd6c7734886f5a13e05fd6b003c9
mxser: store FCR state in mxser_port::FCR

We force the FCR contents on many places in the code instead of writing
what was actually set in mxser_change_speed() (by ->activate() or
->set_serial_info()).

So introduce mxser_port::FCR to hold the proper contents and bitwise-OR
the value to what needs to be set on all those locations. That is,
clearing RX and/or TX FIFOs. Those flags are self-clearing, so no need
to set them to mxser_port::FCR.

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