summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0020-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 18:50:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 18:50:59 +0000
commitba6b167af6ee5e63ca79ad22e7719644aed12b2c (patch)
tree62272cbe2fb256ecb90fa6e2cbfa509541954d28 /debian/patches-rt/0020-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch
parentMerging upstream version 6.8.9. (diff)
downloadlinux-ba6b167af6ee5e63ca79ad22e7719644aed12b2c.tar.xz
linux-ba6b167af6ee5e63ca79ad22e7719644aed12b2c.zip
Merging debian version 6.8.9-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0020-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch')
-rw-r--r--debian/patches-rt/0020-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/debian/patches-rt/0020-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch b/debian/patches-rt/0020-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch
deleted file mode 100644
index 04dcbc620a..0000000000
--- a/debian/patches-rt/0020-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From: John Ogness <john.ogness@linutronix.de>
-Date: Fri, 8 Dec 2023 15:54:27 +0000
-Subject: [PATCH 20/50] printk: nbcon: Add driver_enter/driver_exit console
- callbacks
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.7/older/patches-6.7-rt6.tar.xz
-
-Console drivers need some mechanism to synchronize between "normal
-driver activity" and console printing. For uart serial drivers it
-is the port lock. Other types of console drivers (network,
-graphics, USB) will need something as well.
-
-Provide 2 new mandatory nbcon console callbacks (driver_enter and
-driver_exit) to allow the consoles drivers to implement the
-appropriate synchronization. The callbacks are also expected to
-disable/enable migration.
-
-Signed-off-by: John Ogness <john.ogness@linutronix.de>
-Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
----
- include/linux/console.h | 4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/include/linux/console.h
-+++ b/include/linux/console.h
-@@ -303,6 +303,8 @@ struct nbcon_write_context {
- * @node: hlist node for the console list
- *
- * @write_atomic: Write callback for atomic context
-+ * @driver_enter: Callback to begin synchronization with driver code
-+ * @driver_exit: Callback to finish synchronization with driver code
- * @nbcon_state: State for nbcon consoles
- * @nbcon_seq: Sequence number of the next record for nbcon to print
- * @pbufs: Pointer to nbcon private buffer
-@@ -330,6 +332,8 @@ struct console {
- /* nbcon console specific members */
- bool (*write_atomic)(struct console *con,
- struct nbcon_write_context *wctxt);
-+ void (*driver_enter)(struct console *con, unsigned long *flags);
-+ void (*driver_exit)(struct console *con, unsigned long flags);
- atomic_t __private nbcon_state;
- atomic_long_t __private nbcon_seq;
- struct printk_buffers *pbufs;