On Fri, 17 May 2013, linux fddl wrote: > Hi, > > When I used mass_storage as a gadget You should CC: the maintainer of the g_mass_storage driver. > (use a linux-3.0.77 kernel), That kernel is pretty old. You would be much better off using 3.9. The problem you found may already have been fixed. > After the following operations: > > 1.Turn my board into hibernation. > 2.Plug the usb into host before resume. > 3.Resume my board. The gadget subsystem does not work well with suspend or hibernation. You are better off plugging the board into the host after resume instead of before. > I saw some dump message like this, after some digging, > I think the other devices' retore time is too long to make the gadget > fail to response > the command(GET_MAX_LUN) from the host. That's part of the reason you shouldn't connect the gadget to the host while the gadget is asleep. > What I hope to know is: > Is it a bug? > or I need some operations to cooperate them? I don't know. Alan Stern -- 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