1)There was one discussion about running two gadget driver simultaneously before. Does the problem still exist in android1.5?
2)I still try to bind the gadget serial driver f_acm.c and f_serial.c to android.c. The kernel image with first combination can be recongized by cdc acm USB driver, but the device side can not receive message from PC side. However the second one can be recongized by Qualcom's generic USB driver in PC side, the device will ouput error message when receving message from PC side: [42949437.930000] BUG: scheduling while atomic: NvOsKernelThrea/ 176/0x00000100 [42949437.930000] Modules linked in: [42949437.930000] [42949437.930000] Pid: 176, comm: NvOsKernelThrea [42949437.930000] CPU: 0 Not tainted (2.6.29-00117-g3a218ab-dirty #33) [42949437.930000] PC is at vprintk+0x214/0x31c [42949437.930000] LR is at release_console_sem+0x1a4/0x21c [42949437.930000] pc : [<c008ebe8>] lr : [<c008e620>] psr: 60000013 [42949437.930000] sp : cb923e78 ip : cb923e48 fp : cb923eec [42949437.930000] r10: c034f8a4 r9 : 00000000 r8 : 0000003b [42949437.930000] r7 : 00000012 r6 : c03967e6 r5 : cb923ea0 r4 : cb923ea0 [42949437.930000] r3 : c034f84c r2 : a0000013 r1 : 0001904d r0 : c034f890 [42949437.930000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [42949437.930000] Control: 0085787f Table: 0bd60008 DAC: 00000017 [42949437.930000] [<c002549c>] (show_regs+0x0/0x50) from [<c008aad4>] (__schedule_bug+0x4c/0x60) [42949437.930000] r4:cb923e30 [42949437.930000] [<c008aa88>] (__schedule_bug+0x0/0x60) from [<c02928bc>] (schedule+0x3f8/0x47c) [42949437.930000] r4:ccbda7c8 [42949437.930000] [<c02924c4>] (schedule+0x0/0x47c) from [<c0292fe0>] (__mutex_lock_slowpath+0x84/0xd8) [42949437.930000] [<c0292f5c>] (__mutex_lock_slowpath+0x0/0xd8) from [<c0293058>] (mutex_lock+0x24/0x28) [42949437.930000] r8:c7214001 r7:c70a7080 r6:ccbda294 r5:00001fff r4:00000200 [42949437.930000] [<c0293034>] (mutex_lock+0x0/0x28) from [<c0030550>] (NvUsbShimEpEnqueue+0x40/0x17c) [42949437.930000] [<c0030510>] (NvUsbShimEpEnqueue+0x0/0x17c) from [<c01ea9bc>] (gs_start_tx+0x14c/0x1e4) [42949437.930000] r7:00000001 r6:cb85b000 r5:00001fff r4:00000200 [42949437.930000] [<c01ea870>] (gs_start_tx+0x0/0x1e4) from [<c01eaafc>] (gs_flush_chars+0x2c/0x34) [42949437.930000] [<c01eaad0>] (gs_flush_chars+0x0/0x34) from [<c01b8bb0>] (process_echoes+0x154/0x2c0) [42949437.930000] r4:00000054 [42949437.930000] [<c01b8a5c>] (process_echoes+0x0/0x2c0) from [<c01ba6b8>] (n_tty_receive_buf+0x3ec/0x11ac) [42949437.930000] [<c01ba2cc>] (n_tty_receive_buf+0x0/0x11ac) from [<c01bd68c>] (flush_to_ldisc+0xf0/0x198) [42949437.930000] [<c01bd59c>] (flush_to_ldisc+0x0/0x198) from [<c01bd780>] (tty_flip_buffer_push+0x4c/0x50) [42949437.930000] [<c01bd734>] (tty_flip_buffer_push+0x0/0x50) from [<c01eb2ec>] (gs_rx_push+0x19c/0x1f8) [42949437.930000] [<c01eb150>] (gs_rx_push+0x0/0x1f8) from [<c0092b84>] (tasklet_action+0x64/0xcc) [42949437.930000] [<c0092b20>] (tasklet_action+0x0/0xcc) from [<c00930fc>] (__do_softirq+0x74/0x118) [42949437.930000] r7:00000100 r6:c0396c20 r5:00000001 r4:00000014 [42949437.930000] [<c0093088>] (__do_softirq+0x0/0x118) from [<c0093220>] (irq_exit+0x80/0x98) [42949437.930000] [<c00931a0>] (irq_exit+0x0/0x98) from [<c002304c>] (asm_do_IRQ+0x4c/0x74) [42949437.930000] r4:00000014 [42949437.930000] [<c0023000>] (asm_do_IRQ+0x0/0x74) from [<c0023abc>] (__irq_svc+0x3c/0x100) [42949437.930000] Exception stack(0xcb923e30 to 0xcb923e78) [42949437.930000] 3e20: c034f890 0001904d a0000013 c034f84c [42949437.930000] 3e40: cb923ea0 cb923ea0 c03967e6 00000012 0000003b 00000000 c034f8a4 cb923eec [42949437.930000] 3e60: cb923e48 cb923e78 c008e620 c008ebe8 60000013 ffffffff [42949437.930000] r6:00100000 r5:fe604000 r4:ffffffff [42949437.930000] [<c008e9d4>] (vprintk+0x0/0x31c) from [<c0035a3c>] (NvOsDebugPrintf+0x1c/0x24) [42949437.930000] [<c0035a20>] (NvOsDebugPrintf+0x0/0x24) from [<c0043920>] (NvDdkUsbfEndpointStatus+0x34/0x6c) [42949437.930000] r3:00000000 r2:0000022c r1:c02953b8 r0:c030d3cc [42949437.930000] [<c00438ec>] (NvDdkUsbfEndpointStatus+0x0/0x6c) from [<c00311d8>] (NvUsbShimEventThread+0x238/0xe9c) [42949437.930000] r6:ccbda000 r5:ccbda104 r4:00000000 [42949437.930000] [<c0030fa0>] (NvUsbShimEventThread+0x0/0xe9c) from [<c0034898>] (thread_wrapper+0x1c/0x24) [42949437.930000] [<c003487c>] (thread_wrapper+0x0/0x24) from [<c00a2a20>] (kthread+0x58/0x8c) [42949437.930000] [<c00a29c8>] (kthread+0x0/0x8c) from [<c0090fc0>] (do_exit+0x0/0x71c) [42949437.930000] r7:00000000 r6:00000000 r5:00000000 r4:00000000 I suppose this errors resulting from unsable usb device driver. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---