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/f81534.c | |
parent | 733fff67941dad64b8a630450b8372b1873edc41 (diff) |
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/f81534.c')
-rw-r--r-- | drivers/usb/serial/f81534.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/f81534.c b/drivers/usb/serial/f81534.c index 2b39bda035c7..5661fd03e545 100644 --- a/drivers/usb/serial/f81534.c +++ b/drivers/usb/serial/f81534.c @@ -1238,7 +1238,7 @@ static void f81534_process_per_serial_block(struct usb_serial_port *port, schedule_work(&port_priv->lsr_work); } - if (port->port.console && port->sysrq) { + if (port->sysrq) { if (usb_serial_handle_sysrq_char(port, data[i])) continue; } |