aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2010-10-11 14:23:36 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 13:22:09 -0400
commitc19db4c9e49a049054594272d408e101aaf41b27 (patch)
tree1e026e2ce178a8e27e7fe97934166f8a25b12757 /drivers/usb
parent3ed780117dbe5acb64280d218f0347f238dafed0 (diff)
USB: ftdi_sio: set device latency timeout at port probe
No need to set latency timeout at every open. This also fixes an issue with the read latency being as high as 250ms (instead of 1ms) for the first read after port probe. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/ftdi_sio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 89284df2f8d9..d3e58b56f56d 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -1589,6 +1589,7 @@ static int ftdi_sio_port_probe(struct usb_serial_port *port)
1589 ftdi_set_max_packet_size(port); 1589 ftdi_set_max_packet_size(port);
1590 if (read_latency_timer(port) < 0) 1590 if (read_latency_timer(port) < 0)
1591 priv->latency = 16; 1591 priv->latency = 16;
1592 write_latency_timer(port);
1592 create_sysfs_attrs(port); 1593 create_sysfs_attrs(port);
1593 return 0; 1594 return 0;
1594} 1595}
@@ -1717,8 +1718,6 @@ static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port)
1717 1718
1718 dbg("%s", __func__); 1719 dbg("%s", __func__);
1719 1720
1720 write_latency_timer(port);
1721
1722 /* No error checking for this (will get errors later anyway) */ 1721 /* No error checking for this (will get errors later anyway) */
1723 /* See ftdi_sio.h for description of what is reset */ 1722 /* See ftdi_sio.h for description of what is reset */
1724 usb_control_msg(dev, usb_sndctrlpipe(dev, 0), 1723 usb_control_msg(dev, usb_sndctrlpipe(dev, 0),