Am Samstag, 15. Mai 2010 23:06:55 schrieb Alan Stern: > > Yes, it is really doable. My question is that why usb_set_configuration(-1) > > may avoid races according to the comment, and what is the races ? > > To tell the truth, I don't remember! All I can recall is that > usb_set_configuration is a "softer" way of unbinding drivers than > usb_remove_device, because the unbind takes place while the port is > still enabled and so the driver has a chance to send any final commands > (such as SYNCHRONIZE CACHE) to the device. IIRC some devices where in an odd state if you simple stopped in the middle of a series of commands. Regards Oliver -- 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