public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make Xircom cardbus modems work
@ 2001-05-09 13:37 Bill Nottingham
  2001-05-09 13:48 ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Bill Nottingham @ 2001-05-09 13:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: tytso, jgarzik

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

The attached allows serial.c to work with my Xircom cardbus
ethernet+modem combo card. It doesn't get autodetected, because
the serial driver explicitly doesn't recognize anything with
more than one iomem region (the Xircom modem has two.)
If the serial driver is linked in statically, the delay
on initialization is needed, else the UART will get detected
as a 16450 or not at all; I guess the card is just slow in
coming up.

Bill

[-- Attachment #2: linux-2.4.3-xircom_serial.patch --]
[-- Type: text/plain, Size: 825 bytes --]

--- linux/drivers/char/serial.c.foo	Tue May  8 23:44:41 2001
+++ linux/drivers/char/serial.c	Wed May  9 01:18:07 2001
@@ -4182,6 +4182,15 @@
 	return 0;
 }
 
+static int
+#ifndef MODULE
+__devinit
+#endif
+pci_xircom_fn(struct pci_dev *dev, struct pci_board *board, int enable)
+{
+	__set_current_state(TASK_UNINTERRUPTIBLE);
+	schedule_timeout(HZ/10);
+}
 
 /*
  * This is the configuration table for all of the PCI serial boards
@@ -4558,6 +4567,11 @@
 	/*
 	 * Untested PCI modems, sent in from various folks...
 	 */
+	/* Xircom Cardbus Ethernet 10/100 + 56k Modem <notting@redhat.com> */
+	{	0x115d, 0x0103,
+		PCI_ANY_ID, PCI_ANY_ID,
+		SPCI_FL_BASE0, 1, 115200,
+		0, 0, pci_xircom_fn },
 	/* Elsa Model 56K PCI Modem, from Andreas Rath <arh@01019freenet.de> */
 	{	PCI_VENDOR_ID_ROCKWELL, 0x1004,
 		0x1048, 0x1500, 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-05-14  9:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-09 13:37 [PATCH] make Xircom cardbus modems work Bill Nottingham
2001-05-09 13:48 ` Jeff Garzik
2001-05-09 14:37   ` Tom Sightler
2001-05-09 21:29   ` Bill Nottingham
2001-05-14  9:45     ` Alessandro Suardi

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