Re: USB, select/poll for ucom

2003-07-05 Thread Shunsuke Akiyama
Hi, At Fri, 04 Jul 2003 22:17:50 +0900 (JST), M. Warner Losh wrote: > Hello akiyama-san. It is Warner. Long time since I've spoken with > you. :-) :-) > In message: <[EMAIL PROTECTED]> > Shunsuke Akiyama <[EMAIL PROTECTED]> writes: > : + s = spltty(); > : + > ... > : - > : - s

Re: USB, select/poll for ucom

2003-07-04 Thread M. Warner Losh
Hello akiyama-san. It is Warner. Long time since I've spoken with you. :-) In message: <[EMAIL PROTECTED]> Shunsuke Akiyama <[EMAIL PROTECTED]> writes: : + s = spltty(); : + ... : - : - s = spltty(); This is a no-op in current. Have you tested it in 4.x? I think it is righ

Re: USB, select/poll for ucom

2003-07-03 Thread Shunsuke Akiyama
At Wed, 02 Jul 2003 10:29:51 +0300, Danny Braniss wrote: > > for the record: > I can now confirm that select/poll/FIONREAD do work with the > usb/ucom/uplcom! > > what seems to be broken is the call to 'tcflush(fd, TCIFLUSH)' > this works fine with /dev/cuaa0 but not with /dev/ucom0 Humm..

Re: USB, select/poll for ucom

2003-07-02 Thread Danny Braniss
for the record: I can now confirm that select/poll/FIONREAD do work with the usb/ucom/uplcom! what seems to be broken is the call to 'tcflush(fd, TCIFLUSH)' this works fine with /dev/cuaa0 but not with /dev/ucom0 thanks all, danny __

Re: USB, select/poll for ucom

2003-06-28 Thread Bernd Walter
On Sat, Jun 28, 2003 at 12:37:10PM +0300, Danny Braniss wrote: > [...] > > have fun. the mindshare book is good. however, it took me a long > > time to get a usb 'aha' moment and understand its twisty maze was > > really a workable design obscured by standardese... I suspect it is a > > problem

Re: USB, select/poll for ucom

2003-06-28 Thread Danny Braniss
[...] > have fun. the mindshare book is good. however, it took me a long > time to get a usb 'aha' moment and understand its twisty maze was > really a workable design obscured by standardese... I suspect it is a > problem in the usb chipset driver for the com part. ttypoll just says > 'you hav

Re: USB, select/poll for ucom

2003-06-27 Thread Danny Braniss
> I thought that ucom does do that. It uses ttypoll as its polling > function, and seems to insert data into the tty structure on an > interrupt basis. That is hidden a little bit by the usb driver > structure. In the middle of ucomopen we call ucomstartread which > posts a read onto the bulk i

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
On Wed, Jun 25, 2003 at 02:58:28PM -0400, Louis A. Mamakos wrote: > I think the problem is that the USB hardware doesn't try to read data > from the peripheral until the user-mode code does a read(2) system > call. I had this problem with the ugen device. I would guess that > the ucom/umodem devi

Re: USB, select/poll for ucom

2003-06-25 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Louis A. Mamakos" <[EMAIL PROTECTED]> writes: : I think the problem is that the USB hardware doesn't try to read data : from the peripheral until the user-mode code does a read(2) system : call. I had this problem with the ugen device. I would guess th

Re: USB, select/poll for ucom

2003-06-25 Thread Louis A. Mamakos
> In message: <[EMAIL PROTECTED]> > Danny Braniss <[EMAIL PROTECTED]> writes: > : > : > I'm able to use ppp with umodem/ucom. My brother uses ulpcom/ucom for > : > his ppp needs. I'm pretty sure that select is involved. :-) > : > > : > >From what I can see in the code, I'd expect th

Re: USB, select/poll for ucom

2003-06-25 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Danny Braniss <[EMAIL PROTECTED]> writes: : : > I'm able to use ppp with umodem/ucom. My brother uses ulpcom/ucom for : > his ppp needs. I'm pretty sure that select is involved. :-) : > : > >From what I can see in the code, I'd expect that it would wo

Re: USB, select/poll for ucom

2003-06-25 Thread Danny Braniss
> I'm able to use ppp with umodem/ucom. My brother uses ulpcom/ucom for > his ppp needs. I'm pretty sure that select is involved. :-) > > >From what I can see in the code, I'd expect that it would work because > the ttypoll routine is specified for the poll routine. Why do you > think it would

Re: USB, select/poll for ucom

2003-06-25 Thread M. Warner Losh
: while trying to port an application that works with tty to uplcom/ucom, : (and it doesn't work :-), and looking at the kernel sources and : trying to figure out USB, i think that select(2)/poll(2) will not work, : correct? I'm able to use ppp with umodem/ucom. My brother uses ulpcom/ucom

Re: USB, select/poll for ucom

2003-06-25 Thread Danny Braniss
[...] > > i turned debug on and i could not see any calls to ucomread, > > the program calls select(...) - but select does not initiate anything, > > it justs waits to be woken when something is received (in the case of reading), > > now, unless im wrong - which well could be :-), the read in this

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
On Wed, Jun 25, 2003 at 03:27:30PM +0300, Danny Braniss wrote: > > On Wed, Jun 25, 2003 at 01:13:56PM +0300, Danny Braniss wrote: > > > hi, > > > while trying to port an application that works with tty to uplcom/ucom, > > > (and it doesn't work :-), and looking at the kernel sources and > > > try

Re: USB, select/poll for ucom

2003-06-25 Thread Danny Braniss
> On Wed, Jun 25, 2003 at 01:13:56PM +0300, Danny Braniss wrote: > > hi, > > while trying to port an application that works with tty to uplcom/ucom, > > (and it doesn't work :-), and looking at the kernel sources and > > trying to figure out USB, i think that select(2)/poll(2) will not work, >

Re: USB, select/poll for ucom

2003-06-25 Thread Bernd Walter
On Wed, Jun 25, 2003 at 01:13:56PM +0300, Danny Braniss wrote: > hi, > while trying to port an application that works with tty to uplcom/ucom, > (and it doesn't work :-), and looking at the kernel sources and > trying to figure out USB, i think that select(2)/poll(2) will not work, > correct?

USB, select/poll for ucom

2003-06-25 Thread Danny Braniss
hi, while trying to port an application that works with tty to uplcom/ucom, (and it doesn't work :-), and looking at the kernel sources and trying to figure out USB, i think that select(2)/poll(2) will not work, correct? danny ___ [EMAIL PROTE