The "dropped newline" problem with OPOST + ONLCR, describe by Joe Philipps ( http://marc.theaimsgroup.com/?l=linux-usb-devel&m=106251462412930&w=2 ) is still present in (Fedora Core) 2.6.9 when using ACM: Now, at least in the Keyspan case, the write() routine has an INPROGRESS flag. The generic tty driver dutifully calls the device's write() with the data up to \n (if any), then writes a \r, then a \n. (Remember, put_char('\r') put_char('\n') gets turned into two writes of size 1.) The first one (of \r) goes through just fine. The second one (of \n) however sees the INPROGRESS flag, and dutifully reports back to its caller that the char has not been written (returns written count != requested count, basically). The routine that called it, serial_write(), also dutifully returns the count written. But the problem is that particular return value is discarded because the funtion that called it returns void. There's no "retry loop" or anything.
Greg replied to Joe by saying ( http://marc.theaimsgroup.com/?l=linux-usb-devel&m=106252212922961&w=2 ) But for the "proper" solution, the usb-serial core should probably be changed over to use the serial core. That would help out with this problem, and others. But that's a 2.7 issue at the earliest. For now, you might just want to tweak the keyspan driver to work with your setup. Is a fix for this problem likely soon(ish), or would a hackish workaround be acceptable for inclusion upstream? Regards, Bill Rugolsky ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel