| Alern Stern wrote: | I can't recall any problems with the 2.6.5 version of g_file_storage, but | that was so long ago it doesn't mean much. More recent versions are | indeed stable and well-tested. | | There's one thing you need to watch out for, when writing a controller | driver for use with g_file_storage. The USB Mass Storage protocol | requires the device to halt the bulk endpoints at various times, and a lot | of controllers have problems with that (especially if data is still queued | in the FIFO when the halt is requested). This issue definitely could be | the source of your difficulties. One way around it is to use the | "stall=n" parameter when loading g_file_storage. | | In general, you're better off working with the most recent version of the | kernel that you can. A lot of bugs were fixed between 2.6.5 and 2.6.13, | even if they may not directly affect the USB gadget subsystem. | | Alan Stern |
I moved a majority of the changes from the 2.6.13 file_storage gadget driver into 2.6.5 . A few things like msleep_interruptible() & try_to_freeze() which were supported in 2.6.13 i didnt try to move. A pecular problem i am seeing is that my file_storage gadget driver goes to sleep, waiting for a wakeup that is expected to come from one of the callback functions (off bulk-in/bulk-out endpoint completion). This wakeup checks the BUF_STATE_EMPTY / BUF_STATE_FULL status and accordingly issues the wakeup. My thread doesnt seem to wake up. I am investigating this issue. Does anyone remember any such issues in the 2.6.5 Ass of moving to 2.6.12 or newer versions, i am afraid the rest of the system is written over the 2.6.5 and moving the kernel would be a daunting task, involving testing all the other components. My only option is to get the erquired support in the 2.6.5 we are using. Besides i would also need to get the RNDIS driver into my 2.6.5 tree. Is there any patch available. I know Greg KH osted a patch for 2.6.5 under the subject "[BK PATCH] USB update for 2.6.5" . Where could i get this patch file? ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
