Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233115
b: refs/heads/master
c: 6ec2f46
h: refs/heads/master
i:
  233113: 0ec520b
  233111: 2dc8d92
v: v3
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent d088309 commit 9d4aa97
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c25f6b1591b158f7ae3b9132367d0fa6d632e70e
refs/heads/master: 6ec2f46c4b4abf48c88c0ae7c476f347b97e1105
26 changes: 26 additions & 0 deletions trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ struct ftdi_sio_quirk {
static int ftdi_jtag_probe(struct usb_serial *serial);
static int ftdi_mtxorb_hack_setup(struct usb_serial *serial);
static int ftdi_NDI_device_setup(struct usb_serial *serial);
static int ftdi_stmclite_probe(struct usb_serial *serial);
static void ftdi_USB_UIRT_setup(struct ftdi_private *priv);
static void ftdi_HE_TIRA1_setup(struct ftdi_private *priv);

Expand All @@ -123,6 +124,10 @@ static struct ftdi_sio_quirk ftdi_HE_TIRA1_quirk = {
.port_probe = ftdi_HE_TIRA1_setup,
};

static struct ftdi_sio_quirk ftdi_stmclite_quirk = {
.probe = ftdi_stmclite_probe,
};

/*
* The 8U232AM has the same API as the sio except for:
* - it can support MUCH higher baudrates; up to:
Expand Down Expand Up @@ -810,6 +815,8 @@ static struct usb_device_id id_table_combined [] = {
{ USB_DEVICE(FTDI_VID, FTDI_DOTEC_PID) },
{ USB_DEVICE(QIHARDWARE_VID, MILKYMISTONE_JTAGSERIAL_PID),
.driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
{ USB_DEVICE(ST_VID, ST_STMCLT1030_PID),
.driver_info = (kernel_ulong_t)&ftdi_stmclite_quirk },
{ }, /* Optional parameter entry */
{ } /* Terminating entry */
};
Expand Down Expand Up @@ -1708,6 +1715,25 @@ static int ftdi_jtag_probe(struct usb_serial *serial)
return 0;
}

/*
* First and second port on STMCLiteadaptors is reserved for JTAG interface
* and the forth port for pio
*/
static int ftdi_stmclite_probe(struct usb_serial *serial)
{
struct usb_device *udev = serial->dev;
struct usb_interface *interface = serial->interface;

dbg("%s", __func__);

if (interface == udev->actconfig->interface[2])
return 0;

dev_info(&udev->dev, "Ignoring serial port reserved for JTAG\n");

return -ENODEV;
}

/*
* The Matrix Orbital VK204-25-USB has an invalid IN endpoint.
* We have to correct it if we want to read from it.
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/usb/serial/ftdi_sio_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,12 @@
#define STB_PID 0x0001 /* Sensor Terminal Board */
#define WHT_PID 0x0004 /* Wireless Handheld Terminal */

/*
* STMicroelectonics
*/
#define ST_VID 0x0483
#define ST_STMCLT1030_PID 0x3747 /* ST Micro Connect Lite STMCLT1030 */

/*
* Papouch products (http://www.papouch.com/)
* Submitted by Folkert van Heusden
Expand Down

0 comments on commit 9d4aa97

Please sign in to comment.