projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c83a206
)
tty: sysfs: Add nbcon support for 'active'
author
John Ogness
<john.ogness@linutronix.de>
Wed, 4 Sep 2024 12:05:33 +0000
(14:11 +0206)
committer
Petr Mladek
<pmladek@suse.com>
Wed, 4 Sep 2024 13:56:33 +0000
(15:56 +0200)
Allow the 'active' attribute to list nbcon consoles.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link:
https://lore.kernel.org/r/20240904120536.115780-15-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
drivers/tty/tty_io.c
patch
|
blob
|
history
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index
407b0d8
..
9140825
100644
(file)
--- a/
drivers/tty/tty_io.c
+++ b/
drivers/tty/tty_io.c
@@
-3567,7
+3567,7
@@
static ssize_t show_cons_active(struct device *dev,
for_each_console(c) {
if (!c->device)
continue;
- if (!c->write)
+ if (!
(c->flags & CON_NBCON) && !
c->write)
continue;
if ((c->flags & CON_ENABLED) == 0)
continue;