mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Пасашников А.А." <pepper@eatpbank.ru>
To: linux-kernel@vger.kernel.org
Cc: linux-serial@vger.kernel.org
Subject: JSM module patch
Date: Thu, 13 Jan 2011 11:32:05 +0300	[thread overview]
Message-ID: <op.vo8nbrx3gaomyf@pepper.eatpbank.ru> (raw)
In-Reply-To: <op.vo8g42gfgaomyf@pepper.eatpbank.ru>

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

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

[-- Attachment #2: pci_ids.diff --]
[-- Type: application/octet-stream, Size: 471 bytes --]

--- /usr/src/linux-2.6-2.6.32/include/linux/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

[-- Attachment #3: jsm_driver.diff --]
[-- Type: application/octet-stream, Size: 883 bytes --]

--- jsm_driver.c	2009-12-03 06:51:21.000000000 +0300
+++ /usr/src/linux-source-2.6.32/drivers/serial/jsm/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);

       reply	other threads:[~2011-01-13  8:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <op.vo8g42gfgaomyf@pepper.eatpbank.ru>
2011-01-13  8:32 ` Пасашников А.А. [this message]
2011-01-13 17:43   ` Greg KH
2011-01-13  8:26 Пасашников А.А.

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=op.vo8nbrx3gaomyf@pepper.eatpbank.ru \
    --to=pepper@eatpbank.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®