ChangeSet 1.1005.1.4, 2003/06/24 14:56:31-07:00, [EMAIL PROTECTED]

[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);
 



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to