Skip to contentSkip to conversation

to detect ActionTec PCI modem

PATCH New Steven Walter 1 participant 1 message Apr 26, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 to detect ActionTec PCI modem

This patch modifies serial.c to detect the ActionTec PCI modem. This particular device has a class of PCI_CLASS_COMMUNICATION_OTHER, so it isn't detected by the current catch-all rule that detects devices of "PCI_CLASS_COMMUNICATION_SERIAL".

Patch is against kernel 2.4.3. Tested to compiled and run. Comments welcome.

Signature · 15 lines
-Steven
In a time of universal deceit, telling the truth is a revolutionary act.
			-- George Orwell

--- clean-2.4.3/drivers/char/serial.c	Fri Mar 30 23:15:33 2001
+++ linux/drivers/char/serial.c	Tue Apr 24 16:32:02 2001
@@ -4706,6 +4728,8 @@
 
 
 static struct pci_device_id serial_pci_tbl[] __devinitdata = {
+       { PCI_VENDOR_ID_ATT, PCI_DEVICE_ID_ATT_VENUS_MODEM,
+         PCI_ANY_ID, PCI_ANY_ID, },
        { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
 	 PCI_CLASS_COMMUNICATION_SERIAL << 8, 0xffff00, },
        { 0, }