serial: pch: decomission pch_uart_hal_write()
authorJiri Slaby <jslaby@suse.cz>
Tue, 3 May 2022 08:08:04 +0000 (10:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:42:46 +0000 (22:42 +0200)
commitfcfb1c3982b9c80d62c94aba2107acd4cb00cc5f
treeff271848b111e1601ee53b7b45e9acc7e42988e1
parentd9f3af4fbb1d955bbaf872d9e76502f6e3e803cb
serial: pch: decomission pch_uart_hal_write()

It's horrid and if we inline it into callers, we can get rid of a lot of
sugar around.

So:
* x_char handling becomes a single iowrite8.
* xmit->buf handling is a single loop simply writing characters one by
  one directly from the buf instead of complex cnt_to_end computations.
  Until the buf is empty or fifo size is reached.

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