]> git.baikalelectronics.ru Git - kernel.git/commit
serial: tegra: Use uart_xmit_advance(), fixes icount.tx accounting
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 1 Sep 2022 14:39:33 +0000 (17:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Sep 2022 14:40:21 +0000 (16:40 +0200)
commit6f6709b60a67461e7d91b9fda0d6c73a7fb28cd5
tree1c382a74eb47594e3e91d83ae1a301c57b988961
parent8b97ea28c8a5d6a2d6bf4d040409fe21fe84e532
serial: tegra: Use uart_xmit_advance(), fixes icount.tx accounting

DMA complete & stop paths did not correctly account Tx'ed characters
into icount.tx. Using uart_xmit_advance() fixes the problem.

Fixes: bfdcbdd93b8c ("serial: tegra: add serial driver")
Cc: <stable@vger.kernel.org> # serial: Create uart_xmit_advance()
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220901143934.8850-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c