[PATCH] to detect ActionTec PCI modem

Steven Walter (srwalter@yahoo.com)
Wed, 25 Apr 2001 23:39:39 -0500


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.

-- 
-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, } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/