提交 96050b11 编写于 作者: J Julian Bradfield 提交者: Greg Kroah-Hartman

[PATCH] USB: PL2303 and TIOCMIWAIT

A while ago, I posted about TIOCMIWAIT not working with the PL2303
USB-serial adapter.

After a brief exchange with Greg, I tracked this to a missing wake-up
in the USB interrupt procedures. I got our systems staff to install
the enclosed very simple patch to our 2.6.12 kernels, and it all works
fine as expected. I guess this should also apply to the latest version
and go into the mainstream.

Apologies for the long delay in posting the result.

The routine being patched is pl2303_update_line_status
Signed-off-by: NJulian Bradfield <jcb+luu@inf.ed.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 a5c44e29
......@@ -826,6 +826,7 @@ static void pl2303_update_line_status(struct usb_serial_port *port,
spin_lock_irqsave(&priv->lock, flags);
priv->line_status = data[status_idx];
spin_unlock_irqrestore(&priv->lock, flags);
wake_up_interruptible (&priv->delta_msr_wait);
exit:
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册