ChangeSet 1.1005.1.4, 2003/06/24 14:56:31-07:00, greg@kroah.com [PATCH] USB: pl2303: report CTS and DSR status changes to userspace. drivers/usb/serial/pl2303.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -Nru a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c --- a/drivers/usb/serial/pl2303.c Fri Jun 27 16:27:20 2003 +++ b/drivers/usb/serial/pl2303.c Fri Jun 27 16:27:20 2003 @@ -525,10 +525,13 @@ { struct pl2303_private *priv = port->private; unsigned int mcr = priv->line_control; + unsigned int status = priv->line_status; unsigned int result; result = ((mcr & CONTROL_DTR) ? TIOCM_DTR : 0) - | ((mcr & CONTROL_RTS) ? TIOCM_RTS : 0); + | ((mcr & CONTROL_RTS) ? TIOCM_RTS : 0) + | ((status & UART_CTS) ? TIOCM_CTS : 0) + | ((status & UART_DSR) ? TIOCM_DSR : 0); dbg("%s - result = %x", __FUNCTION__, result);