Bad USB Cable: Device Lockup in mass storage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Thanks,
Praveen Krishnan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux