On Fri, Jul 31, 2009 at 1:37 PM, Praveen G K<praveen.gk@xxxxxxxxx> wrote: > Hello all, > > When I connect the device in mass storage mode using a bad USB cable, > my device locks up completely. Only a hard reset will help me get the > device back to normal functioning. This happens when the device is > connected to a windows box, but on a linux box, the device exits > gracefully, when it realizes it is not able to enumerate properly. > The linux host keeps sending the SET_ADDRESS command to the driver, > while the windows box sends a series of Get_Descriptor requests and > then enters the suspend state, and finally calls the unregister_driver > function. > > I don't understand why it is locking up, because I collected the debug > output from the fsg_unbind function in the file storage gadget file, > and I see all the debug output in the function call. I connected a > real view ICE debugger to see where it is locking up, and I notice > that the code is executing in the default_idle function in > arch/arm/kernel/process.c file. > > Please let me know if you have any suggestions. I am also attaching the debug log. > Thanks, > Praveen Krishnan >
Attachment:
file_storage_gadget_debug
Description: Binary data