mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
747c8a5594
commit
27ae7a7435
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ static inline int uart_handle_break(struct uart_port *port)
|
||||||
port->sysrq = 0;
|
port->sysrq = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (info->flags & UPF_SAK)
|
if (port->flags & UPF_SAK)
|
||||||
do_SAK(info->tty);
|
do_SAK(info->tty);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue