JSM module patch

From: Пасашников А.А.
Date: Thu Jan 13 2011 - 03:32:30 EST


Hello!

We use the OS Debian Squeeze kernel 2.6.32-5-686.
There is a problem:
We have an internal PCI card Digi Neo 4 with device ID 114F:00B0 (has 4 COM-ports).
Core module JSM doesn't support device described above, but support the same device with 8 COM-port and device ID 114F:00B1.
Can you include this patches:

linux-2.6-2.6.32/include/linux/pci_ids.h
--- pci_ids.h 2009-12-03 06:51:21.000000000 +0300
+++ pci_ids.h 2011-01-11 14:07:32.000000000 +0300
@@ -1460,6 +1464,7 @@
#define PCI_DEVICE_ID_DIGI_DF_M_E 0x0071
#define PCI_DEVICE_ID_DIGI_DF_M_IOM2_A 0x0072
#define PCI_DEVICE_ID_DIGI_DF_M_A 0x0073
+#define PCI_DEVICE_ID_DIGI_NEO_4 0x00B0
#define PCI_DEVICE_ID_DIGI_NEO_8 0x00B1
#define PCI_DEVICE_ID_NEO_2DB9 0x00C8
#define PCI_DEVICE_ID_NEO_2DB9PRI 0x00C9

linux-source-2.6.32/drivers/serial/jsm/jsm_driver.c
--- jsm_driver.c 2009-12-03 06:51:21.000000000 +0300
+++ jsm_driver.c 2011-01-11 16:50:57.000000000 +0300
@@ -81,7 +81,7 @@
/* store the info for the board we've found */
brd->boardnum = adapter_count++;
brd->pci_dev = pdev;
- if (pdev->device == PCIE_DEVICE_ID_NEO_4_IBM)
+ if (pdev->device == PCIE_DEVICE_ID_NEO_4_IBM || pdev->device == PCI_DEVICE_ID_DIGI_NEO_4)
brd->maxports = 4;
else if (pdev->device == PCI_DEVICE_ID_DIGI_NEO_8)
brd->maxports = 8;
@@ -213,6 +213,7 @@
{ PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_NEO_2RJ45PRI), 0, 0, 3 },
{ PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCIE_DEVICE_ID_NEO_4_IBM), 0, 0, 4 },
{ PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_DIGI_NEO_8), 0, 0, 5 },
+ { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_DIGI_NEO_4), 0, 0, 6 },
{ 0, }
};
MODULE_DEVICE_TABLE(pci, jsm_pci_tbl);

to the source?

same diff`s attached.

Best regards
Andrey Pasashnikov
Astrakhan
Russia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/