Skip to content

Commit def84b4

Browse files
jognesspmladek
authored andcommitted
tty: sysfs: Add nbcon support for 'active'
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>
1 parent c83a206 commit def84b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/tty_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3567,7 +3567,7 @@ static ssize_t show_cons_active(struct device *dev,
35673567
for_each_console(c) {
35683568
if (!c->device)
35693569
continue;
3570-
if (!c->write)
3570+
if (!(c->flags & CON_NBCON) && !c->write)
35713571
continue;
35723572
if ((c->flags & CON_ENABLED) == 0)
35733573
continue;

0 commit comments

Comments
 (0)