aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/console.h
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2024-08-20 08:35:37 +0206
committerPetr Mladek <pmladek@suse.com>2024-08-21 14:56:23 +0200
commiteabd4600dafacf9895184259373f2445ff748654 (patch)
tree90b91a5ba7f25e2418caceae5475672a51e3e7f6 /include/linux/console.h
parentserial: core: Provide low-level functions to lock port (diff)
downloadwireguard-linux-eabd4600dafacf9895184259373f2445ff748654.tar.xz
wireguard-linux-eabd4600dafacf9895184259373f2445ff748654.zip
serial: core: Introduce wrapper to set @uart_port->cons
Introduce uart_port_set_cons() as a wrapper to set @cons of a uart_port. The wrapper sets @cons under the port lock in order to prevent @cons from disappearing while another context is holding the port lock. This is necessary for a follow-up commit relating to the port lock wrappers, which rely on @cons not changing between lock and unlock. Signed-off-by: John Ogness <john.ogness@linutronix.de> Tested-by: Théo Lebrun <theo.lebrun@bootlin.com> # EyeQ5, AMBA-PL011 Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20240820063001.36405-12-john.ogness@linutronix.de Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'include/linux/console.h')
0 files changed, 0 insertions, 0 deletions