Greg KH wrote:

Then it would be possible for usb serial drivers to set a different data interface in probe() via the serial structure, and for usb-serial to pick that up.


Ugh, no, there's just too many bad things that can happen if you try to
do this.  Think about the fact that you are in the probe function of a
different interface than the one you just claimed...

usb-serial can claim both interfaces then, same way as cdc_acm does. That's probably too much extra code for just one special case though.

Anyway, another and probably the best option is to do it entirely in userspace via libusb, same way as we do for USB transport in OpenOBEX. Good news for Pawel here is that he can copy-paste most of my USB patch for openobex, because OBEX and FBUS interfaces are set up in exactly the same way.

Alex


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to