Skip to contentSkip to conversation

serial/8250: Add support for later SUNIX (TIMEDIA) boards.

PATCH Greg KH 1 participant 1 message Jan 25, 2013 1 message not in the archive TTY layer and serial drivers

lore
Share & tools
lore

Greg KH

author maintainer
#1 lore raw
In reply to a message not in the archive
Quoted 55 lines · Stephen Chivers

Add support for later SUNIX (TIMEDIA) Universal PCI Single and Multi-Port Communications Boards.

These boards have PCI Vendor ID 1fd4 with device ID 1999 but otherwise appear to be the same as the TIMEDIA boards already supported by 8250_pci.c

Tested with the two port serial board part number SER5037A.

---
 drivers/tty/serial/8250/8250_pci.c |   18 ++++++++++++++++++
 include/linux/pci_ids.h            |    3 +++
 2 files changed, 21 insertions(+), 0 deletions(-)
drivers/tty/serial/8250/8250_pci.c +18 -0
index 3b0cc3a..47b3dac 100644
@@ -1912,6 +1912,17 @@ static struct pci_serial_quirk pci_serial_quirks[] __refdata = {
 		.setup		= pci_siig_setup,
 	},
 	/*
+	 * SUNIX
+	 */
+	{
+		.vendor		= PCI_VENDOR_ID_SUNIX,
+		.device		= PCI_DEVICE_ID_SUNIX_1999,
+		.subvendor	= PCI_VENDOR_ID_SUNIX,
+		.subdevice	= PCI_ANY_ID,
+		.init		= pci_timedia_init,
+		.setup		= pci_timedia_setup,
+	},
+	/*
 	 * Titan cards
 	 */
 	{
@@ -4180,6 +4191,13 @@ static struct pci_device_id serial_pci_tbl[] = {
 		pbn_b0_bt_1_921600 },
 
 	/*
+	 * SUNIX
+	 */
+	{	PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
+		PCI_VENDOR_ID_SUNIX, PCI_ANY_ID, 0, 0,
+		pbn_b0_bt_1_921600 },
+
+	/*
 	 * AFAVLAB serial card, from Harald Welte <[email protected]>
 	 */
 	{	PCI_VENDOR_ID_AFAVLAB, PCI_DEVICE_ID_AFAVLAB_P028,
include/linux/pci_ids.h +0 -0
index 19e8d7a..473b0eb 100644

include/linux/pci_ids.h line 2470

Quoted 5 lines
include/linux/pci_ids.h +2 -0
@@ -2466,6 +2466,9 @@
 #define PCI_DEVICE_ID_TEHUTI_3010	0x3010
 #define PCI_DEVICE_ID_TEHUTI_3014	0x3014
 
+#define PCI_VENDOR_ID_SUNIX		0x1fd4
+#define PCI_DEVICE_ID_SUNIX_1999	0x1999

Please read the top of this file about how you shouldn't be adding new devices to it that are only referenced in one kernel file.

Please fix this up and resend.

thanks,

greg k-h