]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.32.19/usb-serial-enabling-support-for-segway-rmp-in-ftdi_sio.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.32.19 / usb-serial-enabling-support-for-segway-rmp-in-ftdi_sio.patch
1 From afad19648f70c6493193e0a774bd754b7790b4a0 Mon Sep 17 00:00:00 2001
2 From: John G. Rogers <jgrogers@gmail.com>
3 Date: Sat, 24 Jul 2010 09:50:52 -0400
4 Subject: USB: serial: enabling support for Segway RMP in ftdi_sio
5
6 From: John G. Rogers <jgrogers@gmail.com>
7
8 commit afad19648f70c6493193e0a774bd754b7790b4a0 upstream.
9
10 I have added the ProductID=0xe729 VendorID=FTDI_VID=0x0403 which will
11 enable support for the Segway Robotic Mobility Platform (RMP200) in the
12 ftdi_sio kernel module. Currently, users of the Segway RMP200 must use
13 a RUN+="/sbin/modprobe -q ftdi-sio product=0xe729 vendor=0x0403 in a
14 udev rule to get the ftdi_sio module to handle the usb interface and
15 mount it on /dev/ttyXXX. This is not a good solution because some users
16 will have multiple USB to Serial converters which will use the ftdi_sio
17 module.
18
19 Signed-off-by: John Rogers <jgrogers@gmail.com>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21
22 ---
23 drivers/usb/serial/ftdi_sio.c | 1 +
24 drivers/usb/serial/ftdi_sio_ids.h | 5 +++++
25 2 files changed, 6 insertions(+)
26
27 --- a/drivers/usb/serial/ftdi_sio.c
28 +++ b/drivers/usb/serial/ftdi_sio.c
29 @@ -752,6 +752,7 @@ static struct usb_device_id id_table_com
30 .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
31 { USB_DEVICE(FTDI_VID, XVERVE_SIGNALYZER_SH4_PID),
32 .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
33 + { USB_DEVICE(FTDI_VID, SEGWAY_RMP200_PID) },
34 { }, /* Optional parameter entry */
35 { } /* Terminating entry */
36 };
37 --- a/drivers/usb/serial/ftdi_sio_ids.h
38 +++ b/drivers/usb/serial/ftdi_sio_ids.h
39 @@ -1039,3 +1039,8 @@
40 #define XVERVE_SIGNALYZER_SH2_PID 0xBCA2
41 #define XVERVE_SIGNALYZER_SH4_PID 0xBCA4
42
43 +/*
44 + * Segway Robotic Mobility Platform USB interface (using VID 0x0403)
45 + * Submitted by John G. Rogers
46 + */
47 +#define SEGWAY_RMP200_PID 0xe729