On Sat, 2006-04-22 at 18:05 +0200, Guennadi Liakhovetski wrote:
> On Sat, 22 Apr 2006, Paul Fulghum wrote:
> 
> > As you say, back to looking at the code...
> > 
> > Just as a quick hack/test, what happens if you don't
> > increment port->open_count in console.c:usb_console_setup() ?
> 
> Hm, what I see here (without the proposed modification) is that getty is 
> started, the prompt is displayed, so, open() and write() work, it's only 
> that read() doesn't work - no input... Looks like something different?

What I was looking for is to execute the ftdi_open (with
the actual tty struct) when getty opens the device.

If the open_count is already 1 (from console) then
that does not happen. There may be some initialization
missed there that is causing the read problem.
Such as setting the low_latency flag (controls how
received data is passed to line discipline), which is only
done if ftdi_open is called with a real tty struct.

--
Paul



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to