Hi all,

I got two questions concerning the file-storage gadget driver.

1. I got a problem while using it on a BigEndian CPU. The configuration 
descriptor length (wTotalLength becomes 0x2000 instead of 0x0020). 
Since there is no problem for the ether.c gadget, I think this problem should
be fixed just by using the usb_gadget_config_ functions. I saw
that the latest version (the one inside 2.6.6) has been patched in order to
use the new function but I didn't saw any
patch for the 2.4 version (I'm using the 2.4.26 kernel). Not that modifications
are difficult, but I prefer use the official version if there is already.
Are there already a patch for the 2.4 kernel ?

2. If my understanding is correct, the file-storage gadget can be used by
either 2 endpoints (cb) or 3 endpoints (cbi). I tried to compile it for 
only 2 endpoints configuration (this avoid the possibility to using the
cbi transport, but for example, in case of the UDC only have 2 endpoints there
is no other choice), but it fails because the EP_INTR_IN_NUM macro is not
defined (used inside fs_intr_in_desc structure). One easy fix would be to
enclose all parts related to the interrupt endpoint with #ifdef EP_INTR_IN_NUM
and also disable the cbi choice for transport in case of there are only 
2 endpoints ...
what do you think ?

Alain


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to