PATCH: serial port configuration problem

David Hinds dhinds at sonic.net
Tue Mar 9 00:08:26 GMT 2004


This fixes a problem with certain GSM/GPRS cards that have odd CIS
information (config entries that disagree about how many IO ports are
needed, which confuses the heuristics in serial_cs for guessing the
correct number of UARTs).

This is already in pcmcia-cs and in the 2.4 serial_cs but somehow has
not made it into 2.6.

-- Dave


--- linux-2.6.3/drivers/serial/serial_cs.c~	2004-02-17 19:57:56.000000000 -0800
+++ linux-2.6.3/drivers/serial/serial_cs.c	2004-03-08 23:57:45.000000000 -0800
@@ -495,8 +495,8 @@
 	}
 
 	if (i != CS_SUCCESS) {
-		cs_error(link->handle, RequestIO, i);
-		return -1;
+		/* At worst, try to configure as a single port */
+		return simple_config(link);
 	}
 
 	i = pcmcia_request_irq(link->handle, &link->irq);



More information about the linux-pcmcia mailing list