Hi!

On Sat, 30 Nov 2002, Greg KH wrote:
>
> Have you tried the latest 2.5 kernel?  A number of irda changes have
> gone into there that might help out with these problems.

Yes, I have tried 2.5.50 and the situation there is somewhat worse, kernel
panics immediately when I try to run irattach. I have not tried to debug
it yet.

> I don't know how this could be fixed.  Any ideas?

I have only one idea, which I have (partially) implemented. In the
beginning of pl2303_set_termios it is checked, whether we are called in
the interrupt context. If we are, then an interrupt-safe version of
set_termios is called, which actually consists of assembly and submission
of a single URB, which seems to be enough to cover speed/stopbits/parity
changes for the cases when nothing special, like transitions to/from zero
baud states or changes in hardware flow control settings, is happening. I
have also implemented a primitive locking scheme which forces pl2303_write
to wait until the termios settings are done. pl2303_write is sometimes
called in the interrupt context as well, but there seem to be no problems
with that.

With those changes I can see, that calls to pl2303_set_termios from the
irda level in the interrupt context are successful, however I still have
trouble connecting the phone. It negotiates the speed changes just fine
and then the speed switch (9600->115200) occurs, after which there is no
response from the phone. After sending a few commands irda gives up and
switches speed back to 9600 and returns to discovery mode, and the phone
starts responding again! So, it might be, that something else need to be
done in set_termios, but it is also possible, that the problem lies with
irda stack. I'll continue experimenting with it.

If You or anybody else on the list is interested in the code (which is
pretty useless at the moment, it seems), I would be glad to share it.

Best regards,

Jurij.




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to