Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27ae7a74 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[SERIAL] Fix UPF_ flag usage with uart_info->flags



The previous change found a bug in the serial SAK handling - because
we were looking for UPF_SAK set in uart_info->flags, we would never
raise a SAK condition.  UPF_SAK is in uart_port->flags.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 747c8a55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -430,7 +430,7 @@ static inline int uart_handle_break(struct uart_port *port)
		port->sysrq = 0;
	}
#endif
	if (info->flags & UPF_SAK)
	if (port->flags & UPF_SAK)
		do_SAK(info->tty);
	return 0;
}