]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: ftdi_sio.c: Allow setting latency timer on FT232RL
authorStepan Moskovchenko <stevenm86@gmail.com>
Wed, 9 May 2007 18:53:04 +0000 (14:53 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:29:50 +0000 (16:29 -0700)
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>
drivers/usb/serial/ftdi_sio.c

index da1c6f7f82b8123aba7e089c4133b5f7beace4f0..3edd13f00982dc4d6806a00960a72d741e023363 100644 (file)
@@ -1149,7 +1149,9 @@ static int create_sysfs_attrs(struct usb_serial_port *port)
                dbg("sysfs attributes for %s", ftdi_chip_name[priv->chip_type]);
                retval = device_create_file(&port->dev, &dev_attr_event_char);
                if ((!retval) &&
-                   (priv->chip_type == FT232BM || priv->chip_type == FT2232C)) {
+                   (priv->chip_type == FT232BM ||
+                    priv->chip_type == FT2232C ||
+                    priv->chip_type == FT232RL)) {
                        retval = device_create_file(&port->dev,
                                                    &dev_attr_latency_timer);
                }