Hello, After carefully analyzing the UDC code, I tried to forward port the UDC I am playing with from 2.6.34.10 to 3.2.11 kernel. Everything compiles and links, but when I try `modprobe g_zero`, the following trace happens (log imported at the end of @): [ 36.110506] kernel BUG at fs/sysfs/file.c:573! [ 36.110595] invalid opcode: 0000 [#1] SMP Any idea why this does happen? Thank you, Zoran _______ [ 36.110308] udc max_udc: registering UDC driver [zero] [ 36.110320] gadget: adding config #3 'source/sink'/f817a820 [ 36.110328] gadget: adding 'source/sink'/f5922d80 to config 'source/sink'/f817a820 [ 36.110337] gadget: full speed source/sink: IN/ep3in-bulk, OUT/ep1out-bulk [ 36.110344] gadget: cfg 3/f817a820 speeds: full/low [ 36.110349] gadget: interface 0 = source/sink/f5922d80 [ 36.110355] gadget: adding config #2 'loopback'/f817a760 [ 36.110361] gadget: adding 'loopback'/f5922de0 to config 'loopback'/f817a760 [ 36.110369] gadget: full speed loopback: IN/ep3in-bulk, OUT/ep1out-bulk [ 36.110376] gadget: cfg 2/f817a760 speeds: full/low [ 36.110381] gadget: interface 0 = loopback/f5922de0 [ 36.110387] gadget: Gadget Zero, version: Cinco de Mayo 2008 [ 36.110402] ------------[ cut here ]------------ [ 36.110506] kernel BUG at fs/sysfs/file.c:573! [ 36.110595] invalid opcode: 0000 [#1] SMP [ 36.110691] Modules linked in: g_zero(+) binfmt_misc sctp ipv6 ip_tables x_tables [last unloaded: scsi_wait_scan] [ 36.112002] [ 36.112002] Pid: 607, comm: modprobe Not tainted 3.2.11-i386 #9 Intel Corporation Moon Creek platform/To be filled by O.E.M. [ 36.112002] EIP: 0060:[<c111619e>] EFLAGS: 00010246 CPU: 0 [ 36.112002] EIP is at sysfs_create_file+0x1e/0x20 [ 36.112002] EAX: 00000000 EBX: f5939c80 ECX: c17a5064 EDX: f817a914 [ 36.112002] ESI: c17a5048 EDI: 00000000 EBP: f599be74 ESP: f599be74 [ 36.112002] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 [ 36.112002] Process modprobe (pid: 607, ti=f599a000 task=f5ad5220 task.ti=f599a000) [ 36.112002] Stack: [ 36.112002] f599be7c c1381153 f599beac f8177db7 c171823d f58ac340 f599bea0 f817a8c0 [ 36.112002] f58abe00 f599beac c17a5064 f817a8c0 f58abe00 c13fb420 f599bed8 c13fa063 [ 36.112002] c16cee90 f58abe08 c1717cd1 f817a3bb f8177bf0 f58abe08 00000005 00000005 [ 36.112002] Call Trace: [ 36.112002] [<c1381153>] device_create_file+0x13/0x20 [ 36.112002] [<f8177db7>] composite_bind+0x1c7/0x2c0 [g_zero] [ 36.112002] [<c13fb420>] ? nuke+0x70/0x70 [ 36.112002] [<c13fa063>] usb_gadget_probe_driver+0xd3/0x1a0 [ 36.112002] [<f8177bf0>] ? override_id.clone.18+0x50/0x50 [g_zero] [ 36.112002] [<f8178524>] usb_composite_probe+0xa4/0xc0 [g_zero] [ 36.112002] [<f8279723>] init+0x12/0x14 [g_zero] [ 36.112002] [<c10011f1>] do_one_initcall+0x31/0x160 [ 36.112002] [<c10b286e>] ? __vunmap+0x6e/0xe0 [ 36.112002] [<f8279711>] ? zero_bind+0x3f3/0x3f3 [g_zero] [ 36.112002] [<c1066ebf>] sys_init_module+0xef/0x1880 [ 36.112002] [<c15635d5>] syscall_call+0x7/0xb [ 36.112002] Code: 00 b8 0c 44 6f c1 e8 d2 29 f2 ff eb ea 55 85 c0 89 e5 74 17 85 d2 8b 40 18 74 10 85 c0 74 0c b9 02 00 00 00 e8 34 ff ff ff 5d c3 <0f> 0b 55 89 e5 57 89 c7 56 89 d6 53 8d 64 24 fc 8b 12 85 d2 c7 [ 36.112002] EIP: [<c111619e>] sysfs_create_file+0x1e/0x20 SS:ESP 0068:f599be74 [ 36.190375] ---[ end trace f19995b2d605207a ]--- -------------------------------------------------------------------------------------- Intel GmbH Dornacher Strasse 1 85622 Feldkirchen/Muenchen, Deutschland Sitz der Gesellschaft: Feldkirchen bei Muenchen Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer Registergericht: Muenchen HRB 47456 Ust.-IdNr./VAT Registration No.: DE129385895 Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052 -- 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