diff options
author | Johan Hovold <johan@kernel.org> | 2020-07-08 14:49:54 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-07-09 09:19:54 +0200 |
commit | 37ae231554f401104bf21847f9093d647a47faa4 (patch) | |
tree | f8d49b26c7a882f96dc3470bf8b8426f93cda877 /drivers/usb/serial/ftdi_sio.c | |
parent | 733fff67941dad64b8a630450b8372b1873edc41 (diff) | |
download | lwn-37ae231554f401104bf21847f9093d647a47faa4.tar.gz lwn-37ae231554f401104bf21847f9093d647a47faa4.zip |
USB: serial: only set sysrq timestamp for consoles
Only set the sysrq timestamp for console ports to avoid having every
driver also check the console flag when processing incoming data.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 07b146d7033a..ade68405b015 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -2561,7 +2561,7 @@ static int ftdi_process_packet(struct usb_serial_port *port, port->icount.rx += len - 2; - if (brkint || (port->port.console && port->sysrq)) { + if (brkint || port->sysrq) { for (i = 2; i < len; i++) { if (brkint && i == len - 1) { if (usb_serial_handle_break(port)) |