Go to file
Andrew Halaney b453a0d1ac serial: mps2-uart: Use port lock wrappers
JIRA: https://issues.redhat.com/browse/RHEL-24205

commit dab781d277da6d9390ae4ba8f521476a8720e599
Author: Thomas Gleixner <tglx@linutronix.de>
Date:   Thu Sep 14 20:43:57 2023 +0206

    serial: mps2-uart: Use port lock wrappers

    When a serial port is used for kernel console output, then all
    modifications to the UART registers which are done from other contexts,
    e.g. getty, termios, are interference points for the kernel console.

    So far this has been ignored and the printk output is based on the
    principle of hope. The rework of the console infrastructure which aims to
    support threaded and atomic consoles, requires to mark sections which
    modify the UART registers as unsafe. This allows the atomic write function
    to make informed decisions and eventually to restore operational state. It
    also allows to prevent the regular UART code from modifying UART registers
    while printk output is in progress.

    All modifications of UART registers are guarded by the UART port lock,
    which provides an obvious synchronization point with the console
    infrastructure.

    To avoid adding this functionality to all UART drivers, wrap the
    spin_[un]lock*() invocations for uart_port::lock into helper functions
    which just contain the spin_[un]lock*() invocations for now. In a
    subsequent step these helpers will gain the console synchronization
    mechanisms.

    Converted with coccinelle. No functional change.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: John Ogness <john.ogness@linutronix.de>
    Link: https://lore.kernel.org/r/20230914183831.587273-41-john.ogness@linutronix.de
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
2024-05-09 11:26:09 -04:00
Documentation dt-bindings: sc16is7xx: Add property to change GPIO function 2024-05-09 11:26:00 -04:00
LICENSES
arch arm64: defconfig: Increase SERIAL_8250_NR_UARTS 2024-05-09 11:26:03 -04:00
block
certs
crypto
drivers serial: mps2-uart: Use port lock wrappers 2024-05-09 11:26:09 -04:00
fs
include serial: core: Use lock wrappers 2024-05-09 11:26:06 -04:00
init
io_uring
ipc
kernel
lib
mm
net tty: rfcomm: convert counts to size_t 2024-05-09 11:25:58 -04:00
redhat
samples
scripts
security
sound ASoC: ti: ams-delta: Fix cx81801_receive() argument types 2024-05-09 11:26:02 -04:00
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.conf
.get_maintainer.ignore
.gitattributes
.gitignore
.gitlab-ci.yml
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS
Makefile
Makefile.rhelver
README
makefile

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.