提交 d984fe91 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: ch341: only wake up MSR queue on changes

Only wake up MSR wait queue on actual modem-status changes.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fd74b0b1
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册