Skip to contentSkip to conversation

small FTDI USB serial driver update

PATCH In review David A. Ranch 2 participants 2 messages Jul 25, 2010 – Jul 26, 2010 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 small FTDI USB serial driver update

Hello Greg,

Thanks for getting back to me! I didn't know what you meant by "Sign-off" but I just researched it per http://lwn.net/Articles/139918 (please let me know if that post doesn't apply anymore). This will be my first kernel patch. Let's try again:

Reason for patch:
-----------------
This patch is for a US Interface, Inc. "Navigator" USB device. Specifically, it's a HAM Radio USB sound modem that also incorporates three pairs of unique FTDI serial ports. The standard Linux FTDI serial driver will only recognize the first two serial ports of an unknown FDTI derived device and this patch adds in recognition to these specific new IDs.

Diffs are against a vanilla 2.6.34

ftdi_sio_ids.h 2010-07-25 07:20:46.000000000 -0700 renamed from ftdi_sio_ids.h.orig 2010-07-25 07:17:44.000000000 -0700 +0 -0
@@ -40,6 +40,13 @@
 
 #define FTDI_NXTCAM_PID                0xABB8 /* NXTCam for Mindstorms 

NXT */

+/* US Interface Navigator (http://www.usinterface.com/). */ +/* Submitted by David Ranch */

+#define FTDI_USINT_CAT_PID     0xB810  /* Navigator CAT and 2nd PTT lines */
+#define FTDI_USINT_WKEY_PID    0xB811  /* Navigator WKEY and FSK lines */
+#define FTDI_USINT_RS232_PID   0xB812  /* Navigator RS232 and CONFIG lines */

+
+
/* OOCDlink by Joern Kaipf <[email protected]>
*
(http://www.joernonline.de/dw/doku.php?id=start&idx=projects:oocdlink) */
#define FTDI_OOCDLINK_PID 0xbaf8 /* Amontec JTAGkey */

ftdi_sio.c 2010-07-25 07:24:21.000000000 -0700 renamed from ftdi_sio.c.orig 2010-07-25 07:21:10.000000000 -0700 +3 -0
@@ -162,6 +162,9 @@ static struct usb_device_id id_table_com
        { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_5_PID) },
        { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_6_PID) },
        { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_7_PID) },
+       { USB_DEVICE(FTDI_VID, FTDI_USINT_CAT_PID) },
+       { USB_DEVICE(FTDI_VID, FTDI_USINT_WKEY_PID) },
+       { USB_DEVICE(FTDI_VID, FTDI_USINT_RS232_PID) },
        { USB_DEVICE(FTDI_VID, FTDI_ACTZWAVE_PID) },
        { USB_DEVICE(FTDI_VID, FTDI_IRTRANS_PID) },
        { USB_DEVICE(FTDI_VID, FTDI_IPLUS_PID) },

--David

Quoted 20 lines · David Ranch
Quoted 11 lines

Hello Greg,

I've trying to get an additional vendor's ID added to the fdti_sio driver in Linux without any luck and I was curious if you could help. The changes are posted here:

http://www.trinityos.com/HAM/US-Interface/usr/src/linux/

My second attempt post with no luck
http://www.spinics.net/lists/linux-hams/msg02455.html

My first request went to [email protected]

Are you sure? I don't have any record of it.

Can you resend your patch, with a signed-off-by line, so I can apply it?

thanks,

greg k-h

#3 lore raw
Quoted 8 lines · David A. Ranch

Hello Greg,

Thanks for getting back to me! I didn't know what you meant by "Sign-off" but I just researched it per
http://lwn.net/Articles/139918 (please let me know if that post doesn't apply anymore). This will be my first kernel patch. Let's try again:

Close, but it's a bit off. Try looking at the version in the kernel tree that you are patching against (should be 2.6.34 or newer).

Quoted 11 lines

Reason for patch:
-----------------
This patch is for a US Interface, Inc. "Navigator" USB device. Specifically, it's a HAM Radio USB sound modem that also incorporates three pairs of unique FTDI serial ports. The standard Linux FTDI serial driver will only recognize the first two serial ports of an unknown FDTI derived device and this patch adds in recognition to these specific new IDs.

Quoted 1 line

Diffs are against a vanilla 2.6.34

The Signed-off-by: line should go here.

ftdi_sio_ids.h 2010-07-25 07:20:46.000000000 -0700

Quoted 4 lines
ftdi_sio_ids.h 2010-07-25 07:20:46.000000000 -0700 renamed from ftdi_sio_ids.h.orig 2010-07-25 07:17:44.000000000 -0700 +0 -0

need a full path to the driver, something like:
a/drivers/usb/serial/ftdi_sio_ids.h.orig

Quoted 9 lines
ftdi_sio_ids.h 2010-07-25 07:20:46.000000000 -0700 renamed from ftdi_sio_ids.h.orig 2010-07-25 07:17:44.000000000 -0700 +0 -0
@@ -40,6 +40,13 @@
 
 #define FTDI_NXTCAM_PID                0xABB8 /* NXTCam for

Mindstorms NXT */

ftdi_sio_ids.h 2010-07-25 07:20:46.000000000 -0700 renamed from ftdi_sio_ids.h.orig 2010-07-25 07:17:44.000000000 -0700 +3 -0
+/* US Interface Navigator (http://www.usinterface.com/). */
+/* Submitted by David Ranch */
+#define FTDI_USINT_CAT_PID     0xB810  /* Navigator CAT and 2nd PTT

lines */

The patch is line-wrapped and can't be applied.

Quoted 15 lines
ftdi_sio_ids.h 2010-07-25 07:20:46.000000000 -0700 renamed from ftdi_sio_ids.h.orig 2010-07-25 07:17:44.000000000 -0700 +2 -0
+#define FTDI_USINT_WKEY_PID    0xB811  /* Navigator WKEY and FSK lines */
+#define FTDI_USINT_RS232_PID   0xB812  /* Navigator RS232 and

CONFIG lines */

ftdi_sio_ids.h 2010-07-25 07:20:46.000000000 -0700 renamed from ftdi_sio_ids.h.orig 2010-07-25 07:17:44.000000000 -0700 +2 -0
+
+
 /* OOCDlink by Joern Kaipf <[email protected]>
  * (http://www.joernonline.de/dw/doku.php?id=start&idx=projects:oocdlink)

*/
#define FTDI_OOCDLINK_PID 0xbaf8 /* Amontec JTAGkey */

ftdi_sio.c 2010-07-25 07:24:21.000000000 -0700 static struct usb_device_id id_table_com · line 163

Quoted 2 lines
ftdi_sio.c 2010-07-25 07:24:21.000000000 -0700 renamed from ftdi_sio.c.orig 2010-07-25 07:21:10.000000000 -0700 +0 -0
@@ -162,6 +162,9 @@ static struct usb_device_id id_table_com
        { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_5_PID) },
        { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_6_PID) },

Your email client stripped off the tabs and converted them to spaces, making the patch impossible to apply.

Care to redo it all and try again?

thanks,

greg k-h