summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0044-tty-sysfs-Add-nbcon-support-for-active.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 17:39:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 17:39:59 +0000
commit27d3313807296c3943a96ceef8c2b7279cb56962 (patch)
tree7d08e78c36ab6437b403fc7cd8c23e41f135c7a3 /debian/patches-rt/0044-tty-sysfs-Add-nbcon-support-for-active.patch
parentMerging upstream version 6.7.7. (diff)
downloadlinux-debian/6.7.7-1.tar.xz
linux-debian/6.7.7-1.zip
Adding debian version 6.7.7-1.debian/6.7.7-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0044-tty-sysfs-Add-nbcon-support-for-active.patch')
-rw-r--r--debian/patches-rt/0044-tty-sysfs-Add-nbcon-support-for-active.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches-rt/0044-tty-sysfs-Add-nbcon-support-for-active.patch b/debian/patches-rt/0044-tty-sysfs-Add-nbcon-support-for-active.patch
new file mode 100644
index 0000000000..e0cf557da2
--- /dev/null
+++ b/debian/patches-rt/0044-tty-sysfs-Add-nbcon-support-for-active.patch
@@ -0,0 +1,33 @@
+From: John Ogness <john.ogness@linutronix.de>
+Date: Fri, 22 Sep 2023 14:31:09 +0000
+Subject: [PATCH 44/50] tty: sysfs: Add nbcon support for 'active'
+Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.7/older/patches-6.7-rt6.tar.xz
+
+Allow the 'active' attribute to list nbcon consoles.
+
+Signed-off-by: John Ogness <john.ogness@linutronix.de>
+Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+---
+ drivers/tty/tty_io.c | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+--- a/drivers/tty/tty_io.c
++++ b/drivers/tty/tty_io.c
+@@ -3544,8 +3544,15 @@ static ssize_t show_cons_active(struct d
+ for_each_console(c) {
+ if (!c->device)
+ continue;
+- if (!c->write)
+- continue;
++ if (c->flags & CON_NBCON) {
++ if (!c->write_atomic &&
++ !(c->write_thread && c->kthread)) {
++ continue;
++ }
++ } else {
++ if (!c->write)
++ continue;
++ }
+ if ((c->flags & CON_ENABLED) == 0)
+ continue;
+ cs[i++] = c;