On Mon, 21 Nov 2005, vishal wrote: > Here is the dump from dmesg with the verbose option enabled in the driver: > DM320 : DM320 USB Peripheral Controller (test version 1.0) > DM320 : version: 2005 September 01, Vishal Borker ( [EMAIL PROTECTED] ) > Interrupt: RESET Interrupt > g_file_storage DM320 Gadget-lun0: open backing file: /flash_media > g_file_storage DM320 Gadget: File-backed Storage Gadget, version: 21 March > 2004 > g_file_storage DM320 Gadget: Number of LUNs=1 > g_file_storage DM320 Gadget-lun0: ro=0, file: /flash_media > g_file_storage DM320 Gadget: transport=Bulk-only (x50) > g_file_storage DM320 Gadget: protocol=Transparent SCSI (x06) > g_file_storage DM320 Gadget: VendorID=x0525, ProductID=xa4a5, Release=x0309 > g_file_storage DM320 Gadget: removable=1, stall=0, buflen=16384 > g_file_storage DM320 Gadget: I/O thread pid: 21
> When i open a file, edit it and save: > g_file_storage DM320 Gadget: SCSI command: TEST UNIT READY; Dc=6, Dn=0; > Hc=6, > Hn=0 > g_file_storage DM320 Gadget: bulk-in, length 13: > 0: 55 53 42 53 70 2e ba ff 00 00 00 00 00 > g_file_storage DM320 Gadget: bulk-out, length 31: > 0: 55 53 42 43 70 6e ba ff 00 10 00 00 00 00 0a 2a > 10: 08 00 00 00 0d 00 00 08 00 00 00 00 00 00 00 > g_file_storage DM320 Gadget: SCSI command: WRITE(10); Dc=10, Do=4096; > Hc=10, H > o=4096 > Interrupt: RESET Interrupt ---> we get reset here and then kaput > > Any comments? It looks like the driver is having trouble writing to the /flash_media file, or the write is taking too long. Can you write to the file from the command line? It's also possible that the controller driver doesn't receive long bulk-out transfers correctly. If you're feeling adventuresome, you could add some printk statements throughout the do_write() subroutine in file_storage.c so that you can follow the flow of control and see where things are getting stuck. A good place to check is the call to vfs_write(). You can also check to see if bulk_out_complete() ever gets called once do_write() starts. Alan Stern ------------------------------------------------------- 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
