提交 27ae7a74 编写于 作者: R Russell King 提交者: Russell King

[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: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 747c8a55
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册