USB: ftdi_sio: Adding Ewert Energy System's CANdapter PID

The following patch adds in the USB PID for Ewert Energy System's CANdapter
device (CANBUS to USB-Serial which uses the FTDI 245R chipset) to the ftdi_sio
device driver.

The patch was tested successfully on Linux kernel 2.6.27 under Ubuntu.

Relevant output from /proc/bus/usb/devices (With patch installed):

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0403 ProdID=9f80 Rev= 6.00
S: Manufacturer=Ewert Energy Systems
S: Product=CANdapter
S: SerialNumber=A6RGB3Z3
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 90mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms


Signed-off-by: Andrew Ewert <andrew@ewertenergy.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Andrew Ewert and committed by
Greg Kroah-Hartman
01ba0856 f2ee6955

+4
+1
drivers/usb/serial/ftdi_sio.c
··· 143 static struct usb_device_id id_table_combined [] = { 144 { USB_DEVICE(FTDI_VID, FTDI_AMC232_PID) }, 145 { USB_DEVICE(FTDI_VID, FTDI_CANUSB_PID) }, 146 { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_0_PID) }, 147 { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_1_PID) }, 148 { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_2_PID) },
··· 143 static struct usb_device_id id_table_combined [] = { 144 { USB_DEVICE(FTDI_VID, FTDI_AMC232_PID) }, 145 { USB_DEVICE(FTDI_VID, FTDI_CANUSB_PID) }, 146 + { USB_DEVICE(FTDI_VID, FTDI_CANDAPTER_PID) }, 147 { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_0_PID) }, 148 { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_1_PID) }, 149 { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_2_PID) },
+3
drivers/usb/serial/ftdi_sio.h
··· 40 /* AlphaMicro Components AMC-232USB01 device */ 41 #define FTDI_AMC232_PID 0xFF00 /* Product Id */ 42 43 /* SCS HF Radio Modems PID's (http://www.scs-ptc.com) */ 44 /* the VID is the standard ftdi vid (FTDI_VID) */ 45 #define FTDI_SCS_DEVICE_0_PID 0xD010 /* SCS PTC-IIusb */
··· 40 /* AlphaMicro Components AMC-232USB01 device */ 41 #define FTDI_AMC232_PID 0xFF00 /* Product Id */ 42 43 + /* www.candapter.com Ewert Energy Systems CANdapter device */ 44 + #define FTDI_CANDAPTER_PID 0x9F80 /* Product Id */ 45 + 46 /* SCS HF Radio Modems PID's (http://www.scs-ptc.com) */ 47 /* the VID is the standard ftdi vid (FTDI_VID) */ 48 #define FTDI_SCS_DEVICE_0_PID 0xD010 /* SCS PTC-IIusb */