thanks a lot Greg. I applied the said patches. And thankfully i am able to detect my device as a Mass strage media device when i use the following module load command: #insmod g_file_storage.ko file=/my_file stall=n transport=BBB protocol=SCSI removable=y But the detection is succesfull on a windows host. I am able to read the files succesfully and flawlessly!!
However when i try to edit a file and save it, the host controller resets the device(my board) I traced the code and here is what i found happens: When the Host issues a WRITE(10) command to the device, my DM320 function driver hands it over to the Mass Media driver gadget layer wherein the code jumps to the do_write() function in the file_storage.c, and there it keeps waiting inside the sleep_thread(),wait_event_interruptible(fsg->thread_wqh...) I havent really understood the Mass Media Driver layer yet, am trying to...any help on what may cause this problem? And why would the device not get detected on my Linux host running 2.6.13 ?. I get read descriptor errors on my linux host when i plug in the device.Could there be some timing issues? Maybe the device isnt settling down in the stipulated time? warm regards, Vishal ----- Original Message ----- From: "Greg KH" <[EMAIL PROTECTED]> To: "vishal" <[EMAIL PROTECTED]> Cc: "Alan Stern" <[EMAIL PROTECTED]>; "linux usb devel" <[email protected]> Sent: Tuesday, October 25, 2005 11:18 PM Subject: Re: [linux-usb-devel] Gadget Controller driver | On Mon, Oct 24, 2005 at 11:35:40AM +0530, vishal wrote: | > 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? | | Look in my kernel.org directory for old usb patches that have been | accepted into mainline: | kernel.org/pub/linux/kernel/people/gregkh/usb/ | | thanks, | | greg k-h ------------------------------------------------------- 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. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
