serial: liteuart: separate rx loop from poll timer
authorGabriel Somlo <gsomlo@gmail.com>
Wed, 23 Nov 2022 13:04:56 +0000 (08:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:59:40 +0000 (14:59 +0100)
commit5dcceabe8e2a72845e3cf7c73ab2302bf5deb69a
tree480f6d6c7d99982d95330f2622771163bac128f2
parenta774aa4580d4339a37e4810f303b6a39ddc745ea
serial: liteuart: separate rx loop from poll timer

Convert the rx loop into its own dedicated function, and (for now)
call it from the poll timer. This is in preparation for adding irq
support to the receive path.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20221123130500.1030189-11-gsomlo@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/liteuart.c