"Dunlap, Randy" wrote:
> 
> Johan,
> 
> > AFAICS all synchronous calls are compatibility wrappers and thus
> > deprecated.
> 
> I'm only trying to remove usb_request_irq(), usb_release_irq(),
> usb_request_bulk(), and usb_terminate_bulk().
> We'll keep usb_control_msg() and usb_bulk_msg() even though
> they are synchronous.

See my other mail, i suggested a sync version which would be more in line with
the urb interface...
I'll remove the copy-pasted stuff... (pfew...)

> > Is synchronous against policy or is it because it usually
> > isn't usefull ?
> 
> Not against policy.  You just can't get any kind of decent
> streaming throughput with it, so drivers should use the async.
> URB-style requests in cases where performance is important.

Yes. This is on my todo list, the send side uses the sync version... (very
little providers use more than 128kb upstream so this wasn't a priority...)

> For some cases, usb_bulk_msg() might be OK.
> usb_control_msg() is generally for config/setup/init type
> stuff, so it's not a performance area (although a few devices
> use control messages for status reporting or as a generic
> read_register/write_register interface, where performance
> is more critical, so they should consider using a Control-type
> URB for this.)

It willl be reduced to control only, which migth move to userspace anyway...
 
> > The more I think about it, synchronous indeed isn't nescessary.
> > The reason for the synchronous calls is that the Speedtouch contains a
> > statemachine that follows the state of the ADSL line. At the
> > moment, it
> > is implemented as a thread.  The more I think about it, the
> > more i feel
> > it doesn`t belong there and I am strongly considering to move it to
> > userspace. This would make configuration a lot easier too.
> > Opinions ?
> 
> Using usbdevfs or devfs or something else?

usbdevfs. I am using it for firmware downloads too so it should integrate
nicely...

The question is... will usbdevfs be used in all the major distro's ?

        J.
-- 
                                  ________
/---------------------------------\      /--------------------\
|  Johan Verrept                   \    /  Alcatel            |
|  Software Development Engineer    \  /   De Villermontstr 38|
|  xDSL Customer Premises Equipment  \/    B-2550 Kontich     |
|  http://www.alcateldsl.com/     ALC/\TEL Belgium            |
|  mailto:[EMAIL PROTECTED]    Phone: +32 3 450 3506   |
\-------------------------------------------------------------/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to