Hi, When I used mass_storage as a gadget(use a linux-3.0.77 kernel), After the following operations: 1.Turn my board into hibernation. 2.Plug the usb into host before resume. 3.Resume my board. 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. What I hope to know is: Is it a bug? or I need some operations to cooperate them? [12254.335994] sd 0:0:0:0: [sda] Synchronizing SCSI cache [12254.353797] PM: freeze of devices complete after 18.095 msecs [12254.354397] PM: late freeze of devices complete after 0.565 msecs [12254.354416] Disabling non-boot CPUs ... [12254.365973] CPU1: shutdown [12254.367032] PM: Creating hibernation image: [12254.934979] PM: Need to copy 77295 pages [12249.081603] Enabling non-boot CPUs ... [12249.092911] CPU1: Booted secondary processor [12249.097392] Switched to NOHz mode on CPU #1 [12249.168129] CPU1 is up [12249.168498] PM: early restore of devices complete after 0.335 msecs [12249.399814] usb usb1: root hub lost power or was reset [12249.400290] sd 0:0:0:0: [sda] Starting disk [12250.976563] g_mass_storage gadget: super speed config #1: Linux File-Backed Storage [12251.007422] g_mass_storage gadget: common->fsg is NULL in fsg_setup at 614 [12251.007441] ------------[ cut here ]------------ [12251.007504] WARNING: at /work1/share/new/linux_aa9_fddl/drivers/usb/gadget/f_mass_storage.c:460 fsg_setup+0x50/0x118 [g_mass_storage]() [12251.007524] Modules linked in: g_mass_storage f_usb30_udc [last unloaded: g_mass_storage] [12251.007551] Backtrace: [12251.007616] [<80031d78>] (dump_backtrace+0x0/0x10c) from [<802c4358>] (dump_stack+0x18/0x1c) [12251.007634] r6:7f18e8bf r5:000001cc r4:00000000 r3:8038a000 [12251.007699] [<802c4340>] (dump_stack+0x0/0x1c) from [<80049840>] (warn_slowpath_common+0x54/0x6c) [12251.007735] [<800497ec>] (warn_slowpath_common+0x0/0x6c) from [<8004987c>] (warn_slowpath_null+0x24/0x2c) [12251.007752] r8:00000000 r7:7f18cfa4 r6:00000000 r5:00000001 r4:00000000 [12251.007778] r3:00000009 [12251.007814] [<80049858>] (warn_slowpath_null+0x0/0x2c) from [<7f189cac>] (fsg_setup+0x50/0x118 [g_mass_storage]) [12251.007871] [<7f189c5c>] (fsg_setup+0x0/0x118 [g_mass_storage]) from [<7f18db70>] (composite_setup+0xbcc/0xce8 [g_mass_storage]) [12251.007891] r6:8038be30 r5:f021ad60 r4:f09dc6c0 r3:7f189c5c [12251.007985] [<7f18cfa4>] (composite_setup+0x0/0xce8 [g_mass_storage]) from [<7f00547c>] (on_end_control_setup_transfer+0x17c/0x298 [f_usb30_udc]) [12251.008045] [<7f005300>] (on_end_control_setup_transfer+0x0/0x298 [f_usb30_udc]) from [<7f00b6bc>] (on_usb_ss_function_controller+0x634/0x10b4 [f_usb30_udc]) [12251.008067] r8:fc420000 r7:00000002 r6:f027754c r5:f027750c r4:f0277400 [12251.008138] [<7f00b088>] (on_usb_ss_function_controller+0x0/0x10b4 [f_usb30_udc]) from [<80082a20>] (handle_irq_event_percpu+0x34/0x160) [12251.008175] [<800829ec>] (handle_irq_event_percpu+0x0/0x160) from [<80082b90>] (handle_irq_event+0x44/0x64) [12251.008214] [<80082b4c>] (handle_irq_event+0x0/0x64) from [<8008501c>] (handle_fasteoi_irq+0xd0/0x11c) [12251.008230] r6:00000061 r5:803901c8 r4:80390180 r3:00000000 [12251.008269] [<80084f4c>] (handle_fasteoi_irq+0x0/0x11c) from [<800824bc>] (generic_handle_irq+0x28/0x38) [12251.008285] r5:00000000 r4:00000061 [12251.008337] [<80082494>] (generic_handle_irq+0x0/0x38) from [<80029080>] (asm_do_IRQ+0x80/0xc0) [12251.008353] r4:00000061 r3:00000100 [12251.008385] [<80029000>] (asm_do_IRQ+0x0/0xc0) from [<8002e6cc>] (__irq_svc+0x4c/0xe0) [12251.008403] Exception stack(0x8038bf40 to 0x8038bf88) [12251.008427] bf40: 8038a000 8038a008 8038bf88 00000000 80395334 803ad3a0 800218d4 813cd1e0 [12251.008453] bf60: 4000406a 412fc092 00000000 8038bf94 8038bf98 8038bf88 8002f698 8002f69c [12251.008470] bf80: 60000013 ffffffff [12251.008480] r5:fd100100 r4:ffffffff [12251.008513] [<8002f670>] (default_idle+0x0/0x30) from [<8002f878>] (cpu_idle+0x78/0xe0) [12251.008564] [<8002f800>] (cpu_idle+0x0/0xe0) from [<802be948>] (rest_init+0x8c/0xa4) [12251.008579] r4:8038a000 r3:00000001 [12251.008612] [<802be8bc>] (rest_init+0x0/0xa4) from [<80008928>] (start_kernel+0x24c/0x28c) [12251.008627] r4:8039539c r3:8038a000 [12251.008652] [<800086dc>] (start_kernel+0x0/0x28c) from [<40008040>] (0x40008040) [12251.008667] r7:80398154 r6:800218d0 r5:803952ec r4:10c5387d [12251.008695] ---[ end trace de8deac85e8d982e ]--- [12251.008723] f_usb30_udc f_usb30_udc: SETUP transfer to gadget driver is failed at -95. [12251.012030] g_mass_storage gadget: common->fsg is NULL in fsg_setup at 614 [12251.012046] ------------[ cut here ]------------ [12251.012089] WARNING: at /work1/share/new/linux_aa9_fddl/drivers/usb/gadget/f_mass_storage.c:460 fsg_setup+0x50/0x118 [g_mass_storage]() [12251.012108] Modules linked in: g_mass_storage f_usb30_udc [last unloaded: g_mass_storage] [12251.012133] Backtrace: [12251.012172] [<80031d78>] (dump_backtrace+0x0/0x10c) from [<802c4358>] (dump_stack+0x18/0x1c) [12251.012190] r6:7f18e8bf r5:000001cc r4:00000000 r3:8038a000 [12251.012242] [<802c4340>] (dump_stack+0x0/0x1c) from [<80049840>] (warn_slowpath_common+0x54/0x6c) [12251.012276] [<800497ec>] (warn_slowpath_common+0x0/0x6c) from [<8004987c>] (warn_slowpath_null+0x24/0x2c) [12251.012293] r8:00000000 r7:7f18cfa4 r6:00000000 r5:00000001 r4:00000000 [12251.012319] r3:00000009 [12251.012354] [<80049858>] (warn_slowpath_null+0x0/0x2c) from [<7f189cac>] (fsg_setup+0x50/0x118 [g_mass_storage]) [12251.012407] [<7f189c5c>] (fsg_setup+0x0/0x118 [g_mass_storage]) from [<7f18db70>] (composite_setup+0xbcc/0xce8 [g_mass_storage]) [12251.012426] r6:8038be30 r5:f021ad60 r4:f09dc6c0 r3:7f189c5c [12251.012506] [<7f18cfa4>] (composite_setup+0x0/0xce8 [g_mass_storage]) from [<7f00547c>] (on_end_control_setup_transfer+0x17c/0x298 [f_usb30_udc]) [12251.012565] [<7f005300>] (on_end_control_setup_transfer+0x0/0x298 [f_usb30_udc]) from [<7f00b6bc>] (on_usb_ss_function_controller+0x634/0x10b4 [f_usb30_udc]) [12251.012587] r8:fc420000 r7:00000002 r6:f027754c r5:f027750c r4:f0277400 [12251.012649] [<7f00b088>] (on_usb_ss_function_controller+0x0/0x10b4 [f_usb30_udc]) from [<80082a20>] (handle_irq_event_percpu+0x34/0x160) [12251.012684] [<800829ec>] (handle_irq_event_percpu+0x0/0x160) from [<80082b90>] (handle_irq_event+0x44/0x64) [12251.012720] [<80082b4c>] (handle_irq_event+0x0/0x64) from [<8008501c>] (handle_fasteoi_irq+0xd0/0x11c) [12251.012736] r6:00000061 r5:803901c8 r4:80390180 r3:00000000 [12251.012776] [<80084f4c>] (handle_fasteoi_irq+0x0/0x11c) from [<800824bc>] (generic_handle_irq+0x28/0x38) [12251.012792] r5:00000000 r4:00000061 [12251.012830] [<80082494>] (generic_handle_irq+0x0/0x38) from [<80029080>] (asm_do_IRQ+0x80/0xc0) [12251.012845] r4:00000061 r3:00000100 [12251.012877] [<80029000>] (asm_do_IRQ+0x0/0xc0) from [<8002e6cc>] (__irq_svc+0x4c/0xe0) [12251.012894] Exception stack(0x8038bf40 to 0x8038bf88) [12251.012918] bf40: 8038a000 8038a008 8038bf88 00000000 80395334 803ad3a0 800218d4 813cd1e0 [12251.012943] bf60: 4000406a 412fc092 00000000 8038bf94 8038bf98 8038bf88 8002f698 8002f69c [12251.012960] bf80: 60000013 ffffffff [12251.012971] r5:fd100100 r4:ffffffff [12251.013000] [<8002f670>] (default_idle+0x0/0x30) from [<8002f878>] (cpu_idle+0x78/0xe0) [12251.013037] [<8002f800>] (cpu_idle+0x0/0xe0) from [<802be948>] (rest_init+0x8c/0xa4) [12251.013052] r4:8038a000 r3:00000001 [12251.013081] [<802be8bc>] (rest_init+0x0/0xa4) from [<80008928>] (start_kernel+0x24c/0x28c) [12251.013096] r4:8039539c r3:8038a000 [12251.013121] [<800086dc>] (start_kernel+0x0/0x28c) from [<40008040>] (0x40008040) [12251.013135] r7:80398154 r6:800218d0 r5:803952ec r4:10c5387d [12251.013162] ---[ end trace de8deac85e8d982f ]--- [12251.013183] f_usb30_udc f_usb30_udc: SETUP transfer to gadget driver is failed at -95. [12251.016528] g_mass_storage gadget: common->fsg is NULL in fsg_setup at 614 [12251.016544] ------------[ cut here ]------------ [12251.016578] WARNING: at /work1/share/new/linux_aa9_fddl/drivers/usb/gadget/f_mass_storage.c:460 fsg_setup+0x50/0x118 [g_mass_storage]() [12251.016597] Modules linked in: g_mass_storage f_usb30_udc [last unloaded: g_mass_storage] [12251.016623] Backtrace: [12251.016660] [<80031d78>] (dump_backtrace+0x0/0x10c) from [<802c4358>] (dump_stack+0x18/0x1c) [12251.016677] r6:7f18e8bf r5:000001cc r4:00000000 r3:8038a000 [12251.016729] [<802c4340>] (dump_stack+0x0/0x1c) from [<80049840>] (warn_slowpath_common+0x54/0x6c) [12251.016763] [<800497ec>] (warn_slowpath_common+0x0/0x6c) from [<8004987c>] (warn_slowpath_null+0x24/0x2c) [12251.016779] r8:00000000 r7:7f18cfa4 r6:00000000 r5:00000001 r4:00000000 [12251.016805] r3:00000009 [12251.016838] [<80049858>] (warn_slowpath_null+0x0/0x2c) from [<7f189cac>] (fsg_setup+0x50/0x118 [g_mass_storage]) [12251.016890] [<7f189c5c>] (fsg_setup+0x0/0x118 [g_mass_storage]) from [<7f18db70>] (composite_setup+0xbcc/0xce8 [g_mass_storage]) [12251.016910] r6:8038be30 r5:f021ad60 r4:f09dc6c0 r3:7f189c5c [12251.016988] [<7f18cfa4>] (composite_setup+0x0/0xce8 [g_mass_storage]) from [<7f00547c>] (on_end_control_setup_transfer+0x17c/0x298 [f_usb30_udc]) [12251.017047] [<7f005300>] (on_end_control_setup_transfer+0x0/0x298 [f_usb30_udc]) from [<7f00b6bc>] (on_usb_ss_function_controller+0x634/0x10b4 [f_usb30_udc]) [12251.017069] r8:fc420000 r7:00000002 r6:f027754c r5:f027750c r4:f0277400 [12251.017134] [<7f00b088>] (on_usb_ss_function_controller+0x0/0x10b4 [f_usb30_udc]) from [<80082a20>] (handle_irq_event_percpu+0x34/0x160) [12251.017170] [<800829ec>] (handle_irq_event_percpu+0x0/0x160) from [<80082b90>] (handle_irq_event+0x44/0x64) [12251.017206] [<80082b4c>] (handle_irq_event+0x0/0x64) from [<8008501c>] (handle_fasteoi_irq+0xd0/0x11c) [12251.017223] r6:00000061 r5:803901c8 r4:80390180 r3:00000000 [12251.017264] [<80084f4c>] (handle_fasteoi_irq+0x0/0x11c) from [<800824bc>] (generic_handle_irq+0x28/0x38) [12251.017280] r5:00000000 r4:00000061 [12251.017321] [<80082494>] (generic_handle_irq+0x0/0x38) from [<80029080>] (asm_do_IRQ+0x80/0xc0) [12251.017336] r4:00000061 r3:00000100 [12251.017367] [<80029000>] (asm_do_IRQ+0x0/0xc0) from [<8002e6cc>] (__irq_svc+0x4c/0xe0) [12251.017384] Exception stack(0x8038bf40 to 0x8038bf88) [12251.017407] bf40: 8038a000 8038a008 8038bf88 00000000 80395334 803ad3a0 800218d4 813cd1e0 [12251.017432] bf60: 4000406a 412fc092 00000000 8038bf94 8038bf98 8038bf88 8002f698 8002f69c [12251.017449] bf80: 60000013 ffffffff [12251.017459] r5:fd100100 r4:ffffffff [12251.017489] [<8002f670>] (default_idle+0x0/0x30) from [<8002f878>] (cpu_idle+0x78/0xe0) [12251.017521] [<8002f800>] (cpu_idle+0x0/0xe0) from [<802be948>] (rest_init+0x8c/0xa4) [12251.017536] r4:8038a000 r3:00000001 [12251.017563] [<802be8bc>] (rest_init+0x0/0xa4) from [<80008928>] (start_kernel+0x24c/0x28c) [12251.017579] r4:8039539c r3:8038a000 [12251.017604] [<800086dc>] (start_kernel+0x0/0x28c) from [<40008040>] (0x40008040) [12251.017618] r7:80398154 r6:800218d0 r5:803952ec r4:10c5387d [12251.017644] ---[ end trace de8deac85e8d9830 ]--- [12251.017665] f_usb30_udc f_usb30_udc: SETUP transfer to gadget driver is failed at -95. [12251.277437] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [12251.280279] ata1.00: configured for UDMA/133 [12251.282971] PM: restore of devices complete after 1884.395 msecs [12252.247817] Restarting tasks ... done. Anyone would like to give me some help? Best Regards! ShiJinghui -- 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