Re: ftdi_sio serial adapter data toggle problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[quoted lines by Alan Stern on 2010/08/16 at 12:01 -0400]

>There are numerous differences in detail between the two logs.  I can't
>interpret them but maybe Daniel can.  However it does seem premature to
>guess that the problem is related to the USB data toggle values.

You're right, of course. I can now give you some more information which, I 
believe, tells us what the problem actually is.

Based on Daniel's description of the various patches, I did a test within our 
code. The user's device does use hardware flow control, and our code does 
enable it with termios. It enables it late, though, i.e. after the device 
probe. I moved the enabling of hardware flow control to beforee the device 
probe and the device starts working right away.

It's important to note, however, that this has never been a problem with users 
who connect the very same device directly to a serial port. I think, therefore, 
that the problem with the ftdi_sio driver is as follows:

I believe the DTR/RTS lines are both raised all the time on a regular serial 
port when hardware flow control isn't enabled. My guess is that the ftdi_sio 
driver probably sets them low when hardware flow control is disabled (or maybe 
just leaves them alone). I think the fix, therefore, may be that the ftdi_sio 
driver needs to force DTR/RTS both high when hardware flow control is disabled.

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | 2011 May 21 is the Day of Judgement.
EMail: dave@xxxxxxxxx | Canada  K2A 1H7   | 2011 Oct 21 is the End of the World.
http://FamilyRadio.com/                   | http://Mielke.cc/bible/
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux