Browse Source

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>
Johan Hovold 11 years ago
parent
commit
d984fe91a8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/usb/serial/ch341.c

+ 3 - 0
drivers/usb/serial/ch341.c

@@ -460,6 +460,9 @@ static void ch341_update_line_status(struct usb_serial_port *port,
 	if (data[1] & CH341_MULT_STAT)
 		dev_dbg(&port->dev, "%s - multiple status change\n", __func__);
 
+	if (!delta)
+		return;
+
 	if (delta & CH341_BIT_DCD) {
 		tty = tty_port_tty_get(&port->port);
 		if (tty) {