Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d984fe91 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: ch341: only wake up MSR queue on changes



Only wake up MSR wait queue on actual modem-status changes.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fd74b0b1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {