ChangeSet 1.1019.1.26, 2003/07/31 13:45:34-07:00, [EMAIL PROTECTED]
[PATCH] USB: added support for TIOCM_RI and TIOCM_CD to pl2303 driver and fix stupid
bug.
Thanks to Paulo Marques <[EMAIL PROTECTED]> for finding this.
drivers/usb/serial/pl2303.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff -Nru a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
--- a/drivers/usb/serial/pl2303.c Thu Aug 28 14:50:20 2003
+++ b/drivers/usb/serial/pl2303.c Thu Aug 28 14:50:20 2003
@@ -59,7 +59,7 @@
/*
* Version Information
*/
-#define DRIVER_VERSION "v0.9"
+#define DRIVER_VERSION "v0.10"
#define DRIVER_DESC "Prolific PL2303 USB to serial adaptor driver"
@@ -531,7 +531,9 @@
result = ((mcr & CONTROL_DTR) ? TIOCM_DTR : 0)
| ((mcr & CONTROL_RTS) ? TIOCM_RTS : 0)
| ((status & UART_CTS) ? TIOCM_CTS : 0)
- | ((status & UART_DSR) ? TIOCM_DSR : 0);
+ | ((status & UART_DSR) ? TIOCM_DSR : 0)
+ | ((status & UART_RING) ? TIOCM_RI : 0)
+ | ((status & UART_DCD) ? TIOCM_CD : 0);
dbg("%s - result = %x", __FUNCTION__, result);
@@ -618,7 +620,7 @@
usb_serial_debug_data (__FILE__, __FUNCTION__, urb->actual_length,
urb->transfer_buffer);
- if (urb->actual_length > UART_STATE)
+ if (urb->actual_length < UART_STATE)
return;
/* Save off the uart status for others to look at */
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel