Commit def84b44 authored by John Ogness's avatar John Ogness Committed by Petr Mladek
Browse files

tty: sysfs: Add nbcon support for 'active'



Allow the 'active' attribute to list nbcon consoles.

Signed-off-by: default avatarJohn Ogness <john.ogness@linutronix.de>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240904120536.115780-15-john.ogness@linutronix.de


Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent c83a2066
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;