be35f77
From 94c78c81df3056e573fb84000a32512e9c16e555 Mon Sep 17 00:00:00 2001
be35f77
From: Josh Boyer <jwboyer@fedoraproject.org>
be35f77
Date: Thu, 10 Mar 2016 08:49:02 -0500
be35f77
Subject: [PATCH] USB: serial: ftdi_sio: Add support for ICP DAS I-756xU
be35f77
 devices
be35f77
be35f77
A Fedora user reports that the ftdi_sio driver works properly for the
be35f77
ICP DAS I-7561U device.  Further, the user manual for these devices
be35f77
instructs users to load the driver and add the ids using the sysfs
be35f77
interface.
be35f77
be35f77
Add support for these in the driver directly so that the devices work
be35f77
out of the box instead of needing manual configuration.
be35f77
be35f77
Reported-by: <thesource@mail.ru>
be35f77
CC: stable <stable@vger.kernel.org>
be35f77
Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org>
be35f77
---
be35f77
 drivers/usb/serial/ftdi_sio.c     | 4 ++++
be35f77
 drivers/usb/serial/ftdi_sio_ids.h | 8 ++++++++
be35f77
 2 files changed, 12 insertions(+)
be35f77
be35f77
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
be35f77
index 8c660ae401d8..b61f12160d37 100644
be35f77
--- a/drivers/usb/serial/ftdi_sio.c
be35f77
+++ b/drivers/usb/serial/ftdi_sio.c
be35f77
@@ -1004,6 +1004,10 @@ static const struct usb_device_id id_table_combined[] = {
be35f77
 	{ USB_DEVICE(FTDI_VID, CHETCO_SEASMART_DISPLAY_PID) },
be35f77
 	{ USB_DEVICE(FTDI_VID, CHETCO_SEASMART_LITE_PID) },
be35f77
 	{ USB_DEVICE(FTDI_VID, CHETCO_SEASMART_ANALOG_PID) },
be35f77
+	/* ICP DAS I-756xU devices */
be35f77
+	{ USB_DEVICE(ICPDAS_VID, ICPDAS_I7560U_PID) },
be35f77
+	{ USB_DEVICE(ICPDAS_VID, ICPDAS_I7561U_PID) },
be35f77
+	{ USB_DEVICE(ICPDAS_VID, ICPDAS_I7563U_PID) },
be35f77
 	{ }					/* Terminating entry */
be35f77
 };
be35f77
 
be35f77
diff --git a/drivers/usb/serial/ftdi_sio_ids.h b/drivers/usb/serial/ftdi_sio_ids.h
be35f77
index a84df2513994..a4ec24ce6a11 100644
be35f77
--- a/drivers/usb/serial/ftdi_sio_ids.h
be35f77
+++ b/drivers/usb/serial/ftdi_sio_ids.h
be35f77
@@ -872,6 +872,14 @@
be35f77
 #define NOVITUS_BONO_E_PID		0x6010
be35f77
 
be35f77
 /*
be35f77
+ * ICPDAS I-756*U devices
be35f77
+ */
be35f77
+#define ICPDAS_VID				0x1b5c
be35f77
+#define ICPDAS_I7560U_PID			0x0103
be35f77
+#define ICPDAS_I7561U_PID			0x0104
be35f77
+#define ICPDAS_I7563U_PID			0x0105
be35f77
+
be35f77
+/*
be35f77
  * RT Systems programming cables for various ham radios
be35f77
  */
be35f77
 #define RTSYSTEMS_VID		0x2100	/* Vendor ID */
be35f77
-- 
be35f77
2.5.0
be35f77