mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/2] pl2303: updates pl2303_update_line_status()
@ 2005-11-11 19:25 Luiz Fernando Capitulino
  0 siblings, 0 replies; only message in thread
From: Luiz Fernando Capitulino @ 2005-11-11 19:25 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-usb-devel


Hi again,

Updates pl2303_update_line_status() to handle X75 and SX1 Siemens mobiles

Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>

 drivers/usb/serial/pl2303.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -Nparu -X /home/lcapitulino/tmp/dontdiff a/drivers/usb/serial/pl2303.c a~/drivers/usb/serial/pl2303.c
--- a/drivers/usb/serial/pl2303.c	2005-11-11 16:57:13.000000000 -0200
+++ a~/drivers/usb/serial/pl2303.c	2005-11-11 16:44:48.000000000 -0200
@@ -813,7 +813,9 @@ static void pl2303_update_line_status(st
 	u8 length = UART_STATE;
 
 	if ((le16_to_cpu(port->serial->dev->descriptor.idVendor) == SIEMENS_VENDOR_ID) &&
-	    (le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X65)) {
+	    (le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X65 ||
+	     le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_SX1 ||
+	     le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X75)) {
 		length = 1;
 		status_idx = 0;
 	}


-- 
Luiz Fernando N. Capitulino

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-11 19:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-11 19:25 [PATCH 2/2] pl2303: updates pl2303_update_line_status() Luiz Fernando Capitulino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®