* [PATCH] ftdi_sio: fix FT232RL support for TIOCMGET
@ 2007-10-06 7:07 Bernardo Innocenti
2007-10-09 23:17 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Bernardo Innocenti @ 2007-10-06 7:07 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Richard Smith, Andres Salomon, linux-usb-devel, linux-kernel,
Francesco Sacchi, Bernardo Innocenti
From: Francesco Sacchi <batt@develer.com>
Reading serial port status lines was broken on the FT232RL since when it
has been detected as a separate chip (2.6.22+). Previously, it would work
because it was just handled as an FT232BM.
Additionally, we were also forgetting to remove the dev_attr_latency_timer
sysfs file in the FT232RL case.
Note by Bernardo Innocenti: the ftdi_sio maintainer appears to have stepped
down, so I'm sending this to Greg Kroah-Hartman as the generic USB serial
maintainer. Please, let me know if this is not appropriate.
Signed-Off-By: Francesco Sacchi <batt@develer.com>
Signed-Off-By: Bernardo Innocenti <bernie@codewiz.org>
---
drivers/usb/serial/ftdi_sio.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 2d04585..940b0c4 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -892,7 +892,7 @@ static __u32 get_ftdi_divisor(struct usb_serial_port * port)
break;
case FT232BM: /* FT232BM chip */
case FT2232C: /* FT2232C chip */
- case FT232RL:
+ case FT232RL: /* FT232RL chip */
if (baud <= 3000000) {
div_value = ftdi_232bm_baud_to_divisor(baud);
} else {
@@ -1169,7 +1169,9 @@ static void remove_sysfs_attrs(struct usb_serial_port *port)
/* XXX see create_sysfs_attrs */
if (priv->chip_type != SIO) {
device_remove_file(&port->dev, &dev_attr_event_char);
- if (priv->chip_type == FT232BM || priv->chip_type == FT2232C) {
+ if (priv->chip_type == FT232BM ||
+ priv->chip_type == FT2232C ||
+ priv->chip_type == FT232RL) {
device_remove_file(&port->dev, &dev_attr_latency_timer);
}
}
@@ -2102,6 +2104,7 @@ static int ftdi_tiocmget (struct usb_serial_port *port, struct file *file)
case FT8U232AM:
case FT232BM:
case FT2232C:
+ case FT232RL:
/* the 8U232AM returns a two byte value (the sio is a 1 byte value) - in the same
format as the data returned from the in point */
if ((ret = usb_control_msg(port->serial->dev,
--
1.5.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ftdi_sio: fix FT232RL support for TIOCMGET
2007-10-06 7:07 [PATCH] ftdi_sio: fix FT232RL support for TIOCMGET Bernardo Innocenti
@ 2007-10-09 23:17 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2007-10-09 23:17 UTC (permalink / raw)
To: Bernardo Innocenti
Cc: Richard Smith, Andres Salomon, linux-usb-devel, linux-kernel,
Francesco Sacchi
On Sat, Oct 06, 2007 at 03:07:25AM -0400, Bernardo Innocenti wrote:
> From: Francesco Sacchi <batt@develer.com>
>
> Reading serial port status lines was broken on the FT232RL since when it
> has been detected as a separate chip (2.6.22+). Previously, it would work
> because it was just handled as an FT232BM.
>
> Additionally, we were also forgetting to remove the dev_attr_latency_timer
> sysfs file in the FT232RL case.
>
> Note by Bernardo Innocenti: the ftdi_sio maintainer appears to have stepped
> down, so I'm sending this to Greg Kroah-Hartman as the generic USB serial
> maintainer. Please, let me know if this is not appropriate.
>
> Signed-Off-By: Francesco Sacchi <batt@develer.com>
> Signed-Off-By: Bernardo Innocenti <bernie@codewiz.org>
This is already queued up for inclusion in the 2.6.24 kernel tree, so
you don't have to resend it.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-09 23:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-06 7:07 [PATCH] ftdi_sio: fix FT232RL support for TIOCMGET Bernardo Innocenti
2007-10-09 23:17 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox