public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bill Nottingham <notting@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: tytso@mit.edu, jgarzik@mandrakesoft.com
Subject: [PATCH] make Xircom cardbus modems work
Date: Wed, 9 May 2001 09:37:33 -0400	[thread overview]
Message-ID: <20010509093733.C18911@devserv.devel.redhat.com> (raw)

[-- 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, 

             reply	other threads:[~2001-05-09 13:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-09 13:37 Bill Nottingham [this message]
2001-05-09 13:48 ` [PATCH] make Xircom cardbus modems work Jeff Garzik
2001-05-09 14:37   ` Tom Sightler
2001-05-09 21:29   ` Bill Nottingham
2001-05-14  9:45     ` Alessandro Suardi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010509093733.C18911@devserv.devel.redhat.com \
    --to=notting@redhat.com \
    --cc=jgarzik@mandrakesoft.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox