]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
serial: Create uart_xmit_advance()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 1 Sep 2022 14:39:32 +0000 (17:39 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:11:49 +0000 (15:11 +0100)
commitf78241f970a313a566e72a5d8d277bdbe2c71c03
treefa74402e42ed32c7165ec47fefac02bc5fcb92e7
parent671cd0ceddfbb880656311666759c829db365049
serial: Create uart_xmit_advance()

BugLink: https://bugs.launchpad.net/bugs/1995420
commit e77cab77f2cb3a1ca2ba8df4af45bb35617ac16d upstream.

A very common pattern in the drivers is to advance xmit tail
index and do bookkeeping of Tx'ed characters. Create
uart_xmit_advance() to handle it.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220901143934.8850-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/serial_core.h