On Thu, 3 Nov 2005, Pawel Kot wrote:
Ah, I see. Seems like Nokia changes these FBUS endpoint addresses all the
time. I think the right way for the dku2 driver would be to identify the
FBUS interface by the interface subclass which seems to be 254
(vendor-specific) always, and maybe also by this unrecognized 05 24 ab 05
33 functional descriptor (see below). That way the driver won't
erronesouly take over wrong interfaces (such as OBEX), which happens now.
Why do you think so? I admit that I don't fully understand the lsusb
output and I don't know the driver details but is seems to me by short
analysing this output and driver source:
- subclass 254 has no endpoints
- FBUS port should have endpoints
Right. However, the subclass 254 interface contains a CDC union descriptor
which points to the data interface with FBUS endpoints. Those two are
called master and slave interfaces. The driver should first check the
subclass value if it's 254 and then parse the union descriptor for the
pointer to the slave interface.
- when looking for FBUS port the condition
serial->interface->num_altsetting == 2 is checked (not sure yet what
it means)
The slave interface has two settings: active (which contains endpoints)
and idle. The driver sets it to the active setting.
- there's some harcode parameter depending on endpoint address passed
to usb_set_interface()
That's the number of the interface, it can be taken from the
serial->interface structure I think, rather than hardcoded.
I'll check with Nokia 6170 which one should be chosen. But I suspect
this is one of class 10, subclass 0.
Nope - class 10 is a generic data interface, and can mean anything.
Alexander
Homepage: http://www.sensi.org/~ak/
-------------------------------------------------------
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