aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/ftdi_sio.c
diff options
context:
space:
mode:
authorStepan Moskovchenko <stevenm86@gmail.com>2007-05-09 14:53:04 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-12 19:29:50 -0400
commit97cd49ebf74e3bee49d541a47ef085df1fbfac7d (patch)
treea1c42d313f523dd43dec38904f99c8911416e038 /drivers/usb/serial/ftdi_sio.c
parent20dfdad74a2baabeecc2896c770efcbf698b9b8d (diff)
USB: ftdi_sio.c: Allow setting latency timer on FT232RL
The new FT232RL allows setting and getting the value of the latency timer, like on the FT232BM. However, the driver will not create the sysfs entries for the RL without this one-line patch. I have tested it on two systems with successful results. From: Stepan Moskovchenko <stevenm86@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r--drivers/usb/serial/ftdi_sio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index da1c6f7f82b8..3edd13f00982 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -1149,7 +1149,9 @@ static int create_sysfs_attrs(struct usb_serial_port *port)
1149 dbg("sysfs attributes for %s", ftdi_chip_name[priv->chip_type]); 1149 dbg("sysfs attributes for %s", ftdi_chip_name[priv->chip_type]);
1150 retval = device_create_file(&port->dev, &dev_attr_event_char); 1150 retval = device_create_file(&port->dev, &dev_attr_event_char);
1151 if ((!retval) && 1151 if ((!retval) &&
1152 (priv->chip_type == FT232BM || priv->chip_type == FT2232C)) { 1152 (priv->chip_type == FT232BM ||
1153 priv->chip_type == FT2232C ||
1154 priv->chip_type == FT232RL)) {
1153 retval = device_create_file(&port->dev, 1155 retval = device_create_file(&port->dev,
1154 &dev_attr_latency_timer); 1156 &dev_attr_latency_timer);
1155 } 1157 }