PATCH: ftdi_sio.c: Allow setting latency timer on FT232RL
Stepan Moskovchenko <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <1178736784.29161.4.camel@localhost> |
Hello. This is a patch against 2.6.21.1 but it really should not matter since the patch is so small. Patch is for ftdi_sio.c, the single-port FTDI USB/Serial converter. 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. Please look over and add to kernel if possible. Thank you Steve ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
ftdi.patch
(text/x-patch, 609 B)
--- linux-2.6.21.1/drivers/usb/serial/ftdi_sio.c 2007-04-27 17:49:26.000000000 -0400
+++ ../linux/drivers/usb/serial/ftdi_sio.c 2007-05-09 14:37:25.000000000 -0400
@@ -1137,7 +1137,8 @@
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);
}
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGQhiQ4CowtMx5dncRAjzdAJ9a1+nm1Gvr8kbhQdgqc9LOq6LW+gCfQp6j GFTZELoOQ7Th1zUON6fFMUk= =EVCG -----END PGP SIGNATURE-----