diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-01-02 16:49:31 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-03 15:42:24 -0500 |
commit | d984fe91a85e49841449b120cda5a50fed1fb126 (patch) | |
tree | 5a428e9c530ac64abdb17679d84674fb7a9f4464 | |
parent | fd74b0b144d3e392b5269207ae4abba03f0adf59 (diff) |
USB: ch341: only wake up MSR queue on changes
Only wake up MSR wait queue on actual modem-status changes.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/serial/ch341.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 025b7857a36c..acc88650ac0a 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
@@ -460,6 +460,9 @@ static void ch341_update_line_status(struct usb_serial_port *port, | |||
460 | if (data[1] & CH341_MULT_STAT) | 460 | if (data[1] & CH341_MULT_STAT) |
461 | dev_dbg(&port->dev, "%s - multiple status change\n", __func__); | 461 | dev_dbg(&port->dev, "%s - multiple status change\n", __func__); |
462 | 462 | ||
463 | if (!delta) | ||
464 | return; | ||
465 | |||
463 | if (delta & CH341_BIT_DCD) { | 466 | if (delta & CH341_BIT_DCD) { |
464 | tty = tty_port_tty_get(&port->port); | 467 | tty = tty_port_tty_get(&port->port); |
465 | if (tty) { | 468 | if (tty) { |