Hello, i have a problem with the composite gadget g_acm_ms (serial and mass storage). The kernel is pretty up to date : Linux 3.6.0-rc7. The architecture is arm davinci omap-l138 on a custom board. Using the g_mass_storage driver with: modprobe g_mass_storage file=/mnt/userdata/gadgetfile removable=1 stall=0 ro=0 is working as expected. Also the g_serial gadget is working. Trying to use the g_acm_ms gadget failed: modprobe g_acm_ms file=/mnt/userdata/gadgetfile removable=1 stall=0 ro=0 -bash-3.2# [ 1633.383021] gadget: common->fsg is NULL in fsg_setup at 534 [ 1633.388716] ------------[ cut here ]------------ [ 1633.393455] WARNING: at drivers/usb/gadget/f_mass_storage.c:380 fsg_setup+0x6c/0x164 [g_acm_ms]() [..] looking in the source code in drivers/usb/gadget/f_mass_storage.c if (!fsg_is_set(fsg->common)) return -EOPNOTSUPP; fsg->common seems not to be set up properly. What is the way to bring up the g_acm_ms gadget, am i missing some parameters? Is anybody using successful this gadget, or facing the same problems? Thank you, Bastian Ruppert. P.S. see the full output: -bash-3.2# [ 1633.383021] gadget: common->fsg is NULL in fsg_setup at 534 [ 1633.388716] ------------[ cut here ]------------ [ 1633.393455] WARNING: at drivers/usb/gadget/f_mass_storage.c:380 fsg_setup+0x6c/0x164 [g_acm_ms]() [ 1633.402312] Modules linked in: g_acm_ms dsplinkk(O) [last unloaded: g_serial] [ 1633.409622] [<c000d900>] (unwind_backtrace+0x0/0xf0) from [<c00182e8>] (warn_slowpath_common+0x4c/0x64) [ 1633.419065] [<c00182e8>] (warn_slowpath_common+0x4c/0x64) from [<c001831c>] (warn_slowpath_null+0x1c/0x24) [ 1633.428814] [<c001831c>] (warn_slowpath_null+0x1c/0x24) from [<bf0868cc>] (fsg_setup+0x6c/0x164 [g_acm_ms]) [ 1633.438689] [<bf0868cc>] (fsg_setup+0x6c/0x164 [g_acm_ms]) from [<bf087fdc>] (composite_setup+0xa70/0xbc4 [g_acm_ms]) [ 1633.449378] [<bf087fdc>] (composite_setup+0xa70/0xbc4 [g_acm_ms]) from [<c02362e0>] (musb_g_ep0_irq+0x87c/0x94c) [ 1633.459573] [<c02362e0>] (musb_g_ep0_irq+0x87c/0x94c) from [<c0234f30>] (musb_interrupt+0x768/0x87c) [ 1633.468734] [<c0234f30>] (musb_interrupt+0x768/0x87c) from [<c023a620>] (da8xx_musb_interrupt+0x160/0x218) [ 1633.478412] [<c023a620>] (da8xx_musb_interrupt+0x160/0x218) from [<c0054a8c>] (handle_irq_event_percpu+0x34/0x1a8) [ 1633.488777] [<c0054a8c>] (handle_irq_event_percpu+0x34/0x1a8) from [<c0054c54>] (handle_irq_event+0x54/0x78) [ 1633.498623] [<c0054c54>] (handle_irq_event+0x54/0x78) from [<c00571d8>] (handle_edge_irq+0x114/0x154) [ 1633.507861] [<c00571d8>] (handle_edge_irq+0x114/0x154) from [<c00546f4>] (generic_handle_irq+0x28/0x30) [ 1633.517272] [<c00546f4>] (generic_handle_irq+0x28/0x30) from [<c0009c54>] (handle_IRQ+0x64/0x8c) [ 1633.526074] [<c0009c54>] (handle_IRQ+0x64/0x8c) from [<c0008fd8>] (__irq_svc+0x38/0x84) [ 1633.534123] [<c0008fd8>] (__irq_svc+0x38/0x84) from [<c0250650>] (cpuidle_wrap_enter+0x54/0xac) [ 1633.542856] [<c0250650>] (cpuidle_wrap_enter+0x54/0xac) from [<c0250138>] (cpuidle_enter_state+0x18/0x70) [ 1633.552448] [<c0250138>] (cpuidle_enter_state+0x18/0x70) from [<c0250748>] (cpuidle_idle_call+0x94/0xdc) [ 1633.561949] [<c0250748>] (cpuidle_idle_call+0x94/0xdc) from [<c000a398>] (cpu_idle+0x78/0xe8) [ 1633.570503] [<c000a398>] (cpu_idle+0x78/0xe8) from [<c05aa948>] (start_kernel+0x2c8/0x330) [ 1633.578758] ---[ end trace cd3ef2a2e2e7426f ]--- [ 1633.583830] gadget: common->fsg is NULL in fsg_setup at 534 [ 1633.589513] ------------[ cut here ]------------ [ 1633.594243] WARNING: at drivers/usb/gadget/f_mass_storage.c:380 fsg_setup+0x6c/0x164 [g_acm_ms]() [ 1633.603100] Modules linked in: g_acm_ms dsplinkk(O) [last unloaded: g_serial] [ 1633.610399] [<c000d900>] (unwind_backtrace+0x0/0xf0) from [<c00182e8>] (warn_slowpath_common+0x4c/0x64) [ 1633.619838] [<c00182e8>] (warn_slowpath_common+0x4c/0x64) from [<c001831c>] (warn_slowpath_null+0x1c/0x24) [ 1633.629591] [<c001831c>] (warn_slowpath_null+0x1c/0x24) from [<bf0868cc>] (fsg_setup+0x6c/0x164 [g_acm_ms]) [ 1633.639463] [<bf0868cc>] (fsg_setup+0x6c/0x164 [g_acm_ms]) from [<bf087fdc>] (composite_setup+0xa70/0xbc4 [g_acm_ms]) [ 1633.650152] [<bf087fdc>] (composite_setup+0xa70/0xbc4 [g_acm_ms]) from [<c02362e0>] (musb_g_ep0_irq+0x87c/0x94c) [ 1633.660351] [<c02362e0>] (musb_g_ep0_irq+0x87c/0x94c) from [<c0234f30>] (musb_interrupt+0x768/0x87c) [ 1633.669508] [<c0234f30>] (musb_interrupt+0x768/0x87c) from [<c023a620>] (da8xx_musb_interrupt+0x160/0x218) [ 1633.679187] [<c023a620>] (da8xx_musb_interrupt+0x160/0x218) from [<c0054a8c>] (handle_irq_event_percpu+0x34/0x1a8) [ 1633.689545] [<c0054a8c>] (handle_irq_event_percpu+0x34/0x1a8) from [<c0054c54>] (handle_irq_event+0x54/0x78) [ 1633.699385] [<c0054c54>] (handle_irq_event+0x54/0x78) from [<c00571d8>] (handle_edge_irq+0x114/0x154) [ 1633.708621] [<c00571d8>] (handle_edge_irq+0x114/0x154) from [<c00546f4>] (generic_handle_irq+0x28/0x30) [ 1633.718029] [<c00546f4>] (generic_handle_irq+0x28/0x30) from [<c0009c54>] (handle_IRQ+0x64/0x8c) [ 1633.726829] [<c0009c54>] (handle_IRQ+0x64/0x8c) from [<c0008fd8>] (__irq_svc+0x38/0x84) [ 1633.734874] [<c0008fd8>] (__irq_svc+0x38/0x84) from [<c0085254>] (__slab_free+0x8/0x2c8) [ 1633.742997] [<c0085254>] (__slab_free+0x8/0x2c8) from [<c05d7d7c>] (0xc05d7d7c) [ 1633.750301] ---[ end trace cd3ef2a2e2e74270 ]--- [ 1633.755481] gadget: common->fsg is NULL in fsg_setup at 534 [ 1633.761166] ------------[ cut here ]------------ [ 1633.765897] WARNING: at drivers/usb/gadget/f_mass_storage.c:380 fsg_setup+0x6c/0x164 [g_acm_ms]() [ 1633.774754] Modules linked in: g_acm_ms dsplinkk(O) [last unloaded: g_serial] [ 1633.782060] [<c000d900>] (unwind_backtrace+0x0/0xf0) from [<c00182e8>] (warn_slowpath_common+0x4c/0x64) [ 1633.791506] [<c00182e8>] (warn_slowpath_common+0x4c/0x64) from [<c001831c>] (warn_slowpath_null+0x1c/0x24) [ 1633.801257] [<c001831c>] (warn_slowpath_null+0x1c/0x24) from [<bf0868cc>] (fsg_setup+0x6c/0x164 [g_acm_ms]) [ 1633.811129] [<bf0868cc>] (fsg_setup+0x6c/0x164 [g_acm_ms]) from [<bf087fdc>] (composite_setup+0xa70/0xbc4 [g_acm_ms]) [ 1633.821822] [<bf087fdc>] (composite_setup+0xa70/0xbc4 [g_acm_ms]) from [<c02362e0>] (musb_g_ep0_irq+0x87c/0x94c) [ 1633.832018] [<c02362e0>] (musb_g_ep0_irq+0x87c/0x94c) from [<c0234f30>] (musb_interrupt+0x768/0x87c) [ 1633.841174] [<c0234f30>] (musb_interrupt+0x768/0x87c) from [<c023a620>] (da8xx_musb_interrupt+0x160/0x218) [ 1633.850851] [<c023a620>] (da8xx_musb_interrupt+0x160/0x218) from [<c0054a8c>] (handle_irq_event_percpu+0x34/0x1a8) [ 1633.861212] [<c0054a8c>] (handle_irq_event_percpu+0x34/0x1a8) from [<c0054c54>] (handle_irq_event+0x54/0x78) [ 1633.871055] [<c0054c54>] (handle_irq_event+0x54/0x78) from [<c00571d8>] (handle_edge_irq+0x114/0x154) [ 1633.880289] [<c00571d8>] (handle_edge_irq+0x114/0x154) from [<c00546f4>] (generic_handle_irq+0x28/0x30) [ 1633.889699] [<c00546f4>] (generic_handle_irq+0x28/0x30) from [<c0009c54>] (handle_IRQ+0x64/0x8c) [ 1633.898500] [<c0009c54>] (handle_IRQ+0x64/0x8c) from [<c0008fd8>] (__irq_svc+0x38/0x84) [ 1633.906529] [<c0008fd8>] (__irq_svc+0x38/0x84) from [<c02e4950>] (__netdev_alloc_frag+0xfc/0x114) [ 1633.915429] [<c02e4950>] (__netdev_alloc_frag+0xfc/0x114) from [<c02e8320>] (__netdev_alloc_skb+0x44/0xe0) [ 1633.925116] [<c02e8320>] (__netdev_alloc_skb+0x44/0xe0) from [<c0211474>] (emac_rx_alloc+0x14/0x54) [ 1633.934192] [<c0211474>] (emac_rx_alloc+0x14/0x54) from [<c02129a8>] (emac_rx_handler+0x78/0x124) [ 1633.943093] [<c02129a8>] (emac_rx_handler+0x78/0x124) from [<c02135e0>] (__cpdma_chan_free+0xfc/0x108) [ 1633.952431] [<c02135e0>] (__cpdma_chan_free+0xfc/0x108) from [<c021370c>] (__cpdma_chan_process+0x120/0x154) [ 1633.962282] [<c021370c>] (__cpdma_chan_process+0x120/0x154) from [<c0213a3c>] (cpdma_chan_process+0x28/0x48) [ 1633.972128] [<c0213a3c>] (cpdma_chan_process+0x28/0x48) from [<c02123a8>] (emac_poll+0x68/0x1f4) [ 1633.980943] [<c02123a8>] (emac_poll+0x68/0x1f4) from [<c02f23c0>] (net_rx_action+0xa0/0x1e4) [ 1633.989415] [<c02f23c0>] (net_rx_action+0xa0/0x1e4) from [<c001f610>] (__do_softirq+0x90/0x148) [ 1633.998140] [<c001f610>] (__do_softirq+0x90/0x148) from [<c001fb28>] (irq_exit+0x44/0x9c) [ 1634.006341] [<c001fb28>] (irq_exit+0x44/0x9c) from [<c0009c58>] (handle_IRQ+0x68/0x8c) [ 1634.014276] [<c0009c58>] (handle_IRQ+0x68/0x8c) from [<c0008fd8>] (__irq_svc+0x38/0x84) [ 1634.022324] [<c0008fd8>] (__irq_svc+0x38/0x84) from [<c0250650>] (cpuidle_wrap_enter+0x54/0xac) [ 1634.031056] [<c0250650>] (cpuidle_wrap_enter+0x54/0xac) from [<c0250138>] (cpuidle_enter_state+0x18/0x70) [ 1634.040645] [<c0250138>] (cpuidle_enter_state+0x18/0x70) from [<c0250748>] (cpuidle_idle_call+0x94/0xdc) [ 1634.050144] [<c0250748>] (cpuidle_idle_call+0x94/0xdc) from [<c000a398>] (cpu_idle+0x78/0xe8) [ 1634.058699] [<c000a398>] (cpu_idle+0x78/0xe8) from [<c05aa948>] (start_kernel+0x2c8/0x330) [ 1634.066951] ---[ end trace cd3ef2a2e2e74271 ]--- -- 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