Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stepan Moskovchenko and committed by
Greg Kroah-Hartman
97cd49eb 20dfdad7

+3 -1
+3 -1
drivers/usb/serial/ftdi_sio.c
··· 1149 1149 dbg("sysfs attributes for %s", ftdi_chip_name[priv->chip_type]); 1150 1150 retval = device_create_file(&port->dev, &dev_attr_event_char); 1151 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 1155 retval = device_create_file(&port->dev, 1154 1156 &dev_attr_latency_timer); 1155 1157 }