]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: imx: Switch to nbcon console
authorEsben Haabendal <esben@geanix.com>
Fri, 13 Sep 2024 08:52:19 +0000 (10:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2024 06:17:33 +0000 (08:17 +0200)
commit70acca67bdd3afeadafb522b543db23a1b9cb9a4
tree5fbb027c6b67a7121833215443ebbf6edc54a452
parentfd29e1e4e6e6019a8e10a215280cab53590c8033
serial: imx: Switch to nbcon console

Implements the necessary callbacks to switch the imx console driver to
perform as an nbcon console.

Add implementations for the nbcon consoles (write_atomic, write_thread,
driver_enter, driver_exit) and add CON_NBCON to the initial flags.

The legacy code is kept in order to easily switch back to legacy mode
by defining CONFIG_SERIAL_IMX_LEGACY_CONSOLE.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Link: https://lore.kernel.org/r/20240913-serial-imx-nbcon-v3-1-4c627302335b@geanix.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c