Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97cd49eb authored by Stepan Moskovchenko's avatar Stepan Moskovchenko Committed by Greg Kroah-Hartman
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 20dfdad7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
		}