On 29/07/07, andrzej zaborowski <[EMAIL PROTECTED]> wrote: > Hi, > > On 27/07/07, Alex Villacís Lasso <[EMAIL PROTECTED]> wrote: > > Yesterday, Ashik Ahamed from the irda-users mailing list send me a > > SnoopyPro log showing communication for the USB IrDA dongle whose > > descriptors are 07d0:4100 (which I call the Kingsun/Dazzle dongle). I do > > not have the dongle, so this driver is completely untested. I only > > guarantee that it will compile. > > > > At least once. > > > > On 2.6.23-rc1. > > > > On my home machine :-) > > > > I am looking for people who do have the dongle, and are willing to see > > if this driver works for them. Please point out any stupid mistakes I > > may have done in the code. Also test if the range of speeds this dongle > > supports, which might be higher (or lower!) than the 2400-115200 bps > > indicated by the probe routine. Even if you are not running exactly > > 2.6.23-rc1, you can test it if you run any 2.6.x kernel. > > The driver seems to work! My testing was very poor but definitely both > transmission and reception worked. The strange thing is that I can't > observe any light from the LED using a camera, with other dongles I > can clearly see when something is being emitted. This may be the > reason why I thought transmission was failing with my earlier libusb > driver. > However other devices clearly detected my computer in the network now. > > Other than the formatting I don't see anything wrong in the code. > (Note that .rx_time is unused). I built the driver inside the kernel > tree rather than with a separate makefile. Removing of the module also > worked without any Oops.
Sorry, actually there were some Oopses but I was looking at the wrong logs. A couple of hours later the kernel started doing strange things with other usb devices and I had to reboot it :( However the communication through the dongle worked fine while it was connected. Jul 29 16:04:30 [kernel] usb 2-3: new low speed USB device using ohci_hcd and address 9 Jul 29 16:04:30 [kernel] usb 2-3: Product: USB to Serial Jul 29 16:04:30 [kernel] usb 2-3: Manufacturer: Kingsun Semiconductor Jul 29 16:04:30 [kernel] usb 2-3: configuration #1 chosen from 1 choice Jul 29 16:04:30 [kernel] KingSun/Dazzle IRDA/USB found at address 9, Vendor: 7d0, Product: 4100 Jul 29 16:04:30 [kernel] drivers/net/irda/ksdazzle-sir.c: IrDA: Registered KingSun/Dazzle device irda0 Jul 29 16:04:30 [kernel] usbcore: registered new interface driver ksdazzle-sir Jul 29 16:05:06 [irattach] executing: '/sbin/modprobe irda0' Jul 29 16:05:06 [irattach] + FATAL: Module irda0 not found. Jul 29 16:05:06 [irattach] Trying to load module irda0 exited with status 1 Jul 29 16:05:06 [irattach] executing: 'echo borg > /proc/sys/net/irda/devname' Jul 29 16:05:06 [irattach] Starting device irda0 Jul 29 16:17:02 [kernel] IrLAP, no activity on link! - Last output repeated 3 times - Jul 29 16:18:35 [kernel] async_wrap_skb(), tx buffer overflow (n=507) - Last output repeated 2 times - Jul 29 16:18:39 [kernel] IrLAP, no activity on link! Jul 29 16:18:39 [kernel] async_wrap_skb(), tx buffer overflow (n=507) - Last output repeated 2 times - Jul 29 16:18:42 [kernel] IrLAP, no activity on link! Jul 29 16:18:42 [kernel] async_wrap_skb(), tx buffer overflow (n=507) - Last output repeated 2 times - Jul 29 16:18:46 [kernel] printk: 2 messages suppressed. Jul 29 16:18:46 [kernel] async_wrap_skb(), tx buffer overflow (n=507) Jul 29 16:18:48 [kernel] BUG: scheduling while atomic: swapper/0x10000100/0 Jul 29 16:18:48 [kernel] Call Trace: Jul 29 16:18:48 [kernel] [<ffffffff810393f9>] autoremove_wake_function+0x9/0x30 Jul 29 16:18:48 [kernel] [<ffffffff8101c784>] __wake_up_common+0x44/0x80 Jul 29 16:18:48 [kernel] [<ffffffff8101ce23>] __wake_up+0x43/0x70 Jul 29 16:18:48 [kernel] [<ffffffff8804f250>] :irda:irlap_final_timer_expired+0x0/0x10 Jul 29 16:18:48 [kernel] [<ffffffff8101f52c>] __cond_resched+0x1c/0x50 Jul 29 16:18:48 [kernel] [<ffffffff8130806e>] cond_resched+0x2e/0x40 Jul 29 16:18:48 [kernel] [<ffffffff812721d6>] lock_sock_nested+0x16/0xe0 Jul 29 16:18:48 [kernel] [<ffffffff880501e4>] :irda:hashbin_remove+0xc4/0x120 Jul 29 16:18:48 [kernel] [<ffffffff8805028a>] :irda:hashbin_insert+0x4a/0x100 Jul 29 16:18:48 [kernel] [<ffffffff8804f250>] :irda:irlap_final_timer_expired+0x0/0x10 Jul 29 16:18:48 [kernel] [<ffffffff88056bca>] :irda:irda_disconnect_indication+0x4a/0xd0 Jul 29 16:18:48 [kernel] [<ffffffff8804a12c>] :irda:irlmp_state_dtr+0xdc/0x130 Jul 29 16:18:48 [kernel] [<ffffffff8804a61f>] :irda:irlmp_state_active+0x13f/0x170 Jul 29 16:18:48 [kernel] [<ffffffff8804c6e5>] :irda:irlap_state_nrm_p+0x4e5/0x5a0 Jul 29 16:18:48 [kernel] [<ffffffff8804f250>] :irda:irlap_final_timer_expired+0x0/0x10 Jul 29 16:18:48 [kernel] [<ffffffff8804bbfd>] :irda:irlap_do_event+0x3d/0x130 Jul 29 16:18:48 [kernel] [<ffffffff8804f250>] :irda:irlap_final_timer_expired+0x0/0x10 Jul 29 16:18:48 [kernel] [<ffffffff8102da71>] run_timer_softirq+0x141/0x1c0 Jul 29 16:18:48 [kernel] [<ffffffff81029d6f>] __do_softirq+0x5f/0xd0 Jul 29 16:18:48 [kernel] [<ffffffff8100ac5c>] call_softirq+0x1c/0x30 Jul 29 16:18:48 [kernel] [<ffffffff8100ca4c>] do_softirq+0x2c/0x90 Jul 29 16:18:48 [kernel] [<ffffffff81015d2e>] smp_apic_timer_interrupt+0x5e/0x80 Jul 29 16:18:48 [kernel] [<ffffffff81008da0>] default_idle+0x0/0x50 - Last output repeated twice - Jul 29 16:18:48 [kernel] [<ffffffff8100a706>] apic_timer_interrupt+0x66/0x70 Jul 29 16:18:48 [kernel] <EOI> [<ffffffff81008dc9>] default_idle+0x29/0x50 Jul 29 16:18:48 [kernel] [<ffffffff81008e4c>] cpu_idle+0x5c/0x80 Jul 29 16:18:48 [kernel] [<ffffffff81491c6c>] start_secondary+0x50c/0x520 Jul 29 16:18:48 [kernel] Unable to handle kernel NULL pointer dereference at 0000000000000008 RIP: Jul 29 16:18:48 [kernel] [<ffffffff88055f6a>] :irda:irda_recvmsg_stream+0x11a/0x300 Jul 29 16:18:48 [kernel] PGD 369ea067 PUD 1c23f067 PMD 0 Jul 29 16:18:48 [kernel] CPU 1 Jul 29 16:18:48 [kernel] Modules linked in: ksdazzle_sir kqemu cdc_ether usbnet cdc_acm ipaq usbserial irda pppoatm usbhid speedtch usbatm ohci_hcd Jul 29 16:18:48 [kernel] Pid: 20273, comm: obexftp Not tainted 2.6.20-rc3-omap1balrog #0 Jul 29 16:18:48 [kernel] RIP: 0010:[<ffffffff88055f6a>] [<ffffffff88055f6a>] irda:irda_recvmsg_stream+0x11a/0x300 Jul 29 16:18:48 [kernel] Process obexftp (pid: 20273, threadinfo ffff81006057e000, task ffff81007bd05670) Jul 29 16:18:48 [kernel] Call Trace: Jul 29 16:18:48 [kernel] [<ffffffff8101f4d0>] default_wake_function+0x0/0x10 Jul 29 16:18:48 [kernel] [<ffffffff88054154>] :irda:__lock_irda_stream_recvmsg+0x44/0x70 Jul 29 16:18:48 [kernel] [<ffffffff8126f5e2>] sock_aio_read+0x102/0x130 Jul 29 16:18:48 [kernel] [<ffffffff81069aef>] do_sync_read+0xcf/0x120 Jul 29 16:18:48 [kernel] [<ffffffff810393f0>] autoremove_wake_function+0x0/0x30 Jul 29 16:18:48 [kernel] [<ffffffff811909e3>] tty_ldisc_deref+0x63/0x80 Jul 29 16:18:48 [kernel] [<ffffffff811924cc>] tty_write+0x21c/0x250 Jul 29 16:18:48 [kernel] [<ffffffff8106a460>] vfs_read+0xd0/0x180 Jul 29 16:18:48 [kernel] [<ffffffff8106a963>] sys_read+0x53/0x90 Jul 29 16:18:48 [kernel] [<ffffffff81009b3e>] system_call+0x7e/0x83 Jul 29 16:18:48 [kernel] Code: f0 0f ba 68 08 01 48 8b 7d 68 48 8d 74 24 20 e8 22 37 fe f8 Jul 29 16:18:48 [kernel] RIP [<ffffffff88055f6a>] :irda:irda_recvmsg_stream+0x11a/0x300 Jul 29 16:18:48 [kernel] RSP <ffff81006057fc88> Jul 29 16:19:29 [kernel] async_wrap_skb(), tx buffer overflow (n=507) - Last output repeated 5 times - Jul 29 16:19:32 [kernel] IrLAP, no activity on link! Jul 29 16:19:32 [kernel] async_wrap_skb(), tx buffer overflow (n=507) - Last output repeated twice - Jul 29 16:19:36 [kernel] printk: 6 messages suppressed. Jul 29 16:19:36 [kernel] async_wrap_skb(), tx buffer overflow (n=507) Jul 29 16:19:41 [kernel] printk: 10 messages suppressed. Jul 29 16:19:41 [kernel] async_wrap_skb(), tx buffer overflow (n=507) Jul 29 16:19:42 [kernel] BUG: scheduling while atomic: swapper/0x10000100/0 Jul 29 16:19:42 [kernel] Call Trace: Jul 29 16:19:42 [kernel] <IRQ> [<ffffffff8130777d>] __sched_text_start+0x5d/0x834 Jul 29 16:19:42 [kernel] [<ffffffff810393f9>] autoremove_wake_function+0x9/0x30 Jul 29 16:19:42 [kernel] [<ffffffff8101c784>] __wake_up_common+0x44/0x80 Jul 29 16:19:42 [kernel] [<ffffffff8101ce23>] __wake_up+0x43/0x70 Jul 29 16:19:42 [kernel] [<ffffffff8804f250>] :irda:irlap_final_timer_expired+0x0/0x10 Jul 29 16:19:42 [kernel] [<ffffffff8101f52c>] __cond_resched+0x1c/0x50 Jul 29 16:19:42 [kernel] [<ffffffff8130806e>] cond_resched+0x2e/0x40 Jul 29 16:19:42 [kernel] [<ffffffff812721d6>] lock_sock_nested+0x16/0xe0 Jul 29 16:19:42 [kernel] [<ffffffff880501e4>] :irda:hashbin_remove+0xc4/0x120 Jul 29 16:19:42 [kernel] [<ffffffff8805028a>] :irda:hashbin_insert+0x4a/0x100 Jul 29 16:19:42 [kernel] [<ffffffff8804f250>] :irda:irlap_final_timer_expired+0x0/0x10 Jul 29 16:19:42 [kernel] [<ffffffff88056bca>] :irda:irda_disconnect_indication+0x4a/0xd0 Jul 29 16:19:42 [kernel] [<ffffffff8804a12c>] :irda:irlmp_state_dtr+0xdc/0x130 Jul 29 16:19:42 [kernel] [<ffffffff8804a61f>] :irda:irlmp_state_active+0x13f/0x170 Jul 29 16:19:42 [kernel] [<ffffffff8804c6e5>] :irda:irlap_state_nrm_p+0x4e5/0x5a0 Jul 29 16:19:42 [kernel] [<ffffffff8804f250>] :irda:irlap_final_timer_expired+0x0/0x10 Jul 29 16:19:42 [kernel] [<ffffffff8804bbfd>] :irda:irlap_do_event+0x3d/0x130 Jul 29 16:19:42 [kernel] [<ffffffff8804f250>] :irda:irlap_final_timer_expired+0x0/0x10 Jul 29 16:19:42 [kernel] [<ffffffff8102da71>] run_timer_softirq+0x141/0x1c0 Jul 29 16:19:42 [kernel] [<ffffffff81029d6f>] __do_softirq+0x5f/0xd0 Jul 29 16:19:42 [kernel] [<ffffffff8100ac5c>] call_softirq+0x1c/0x30 Jul 29 16:19:42 [kernel] [<ffffffff8100ca4c>] do_softirq+0x2c/0x90 Jul 29 16:19:42 [kernel] [<ffffffff81015d2e>] smp_apic_timer_interrupt+0x5e/0x80 Jul 29 16:19:42 [kernel] [<ffffffff81008da0>] default_idle+0x0/0x50 - Last output repeated twice - Jul 29 16:19:42 [kernel] [<ffffffff8100a706>] apic_timer_interrupt+0x66/0x70 Jul 29 16:19:42 [kernel] <EOI> [<ffffffff81008dc9>] default_idle+0x29/0x50 Jul 29 16:19:42 [kernel] [<ffffffff81008e4c>] cpu_idle+0x5c/0x80 Jul 29 16:19:42 [kernel] [<ffffffff81488745>] start_kernel+0x1c5/0x1d0 Jul 29 16:19:42 [kernel] [<ffffffff8148815a>] _sinittext+0x15a/0x160 Jul 29 16:19:42 [kernel] Unable to handle kernel NULL pointer dereference at 0000000000000008 RIP: Jul 29 16:19:42 [kernel] [<ffffffff88055f6a>] :irda:irda_recvmsg_stream+0x11a/0x300 Jul 29 16:19:42 [kernel] PGD 4cd6a067 PUD 9f00067 PMD 0 Jul 29 16:19:42 [kernel] CPU 0 Jul 29 16:19:42 [kernel] Modules linked in: ksdazzle_sir kqemu cdc_ether usbnet cdc_acm ipaq usbserial irda pppoatm usbhid speedtch usbatm ohci_hcd Jul 29 16:19:42 [kernel] Pid: 20278, comm: obexftp Not tainted 2.6.20-rc3-omap1balrog #0 Jul 29 16:19:42 [kernel] RIP: 0010:[<ffffffff88055f6a>] [<ffffffff88055f6a>] :irda:irda_recvmsg_stream+0x11a/0x300 Jul 29 16:19:42 [kernel] Process obexftp (pid: 20278, threadinfo ffff810045a34000, task ffff81006ce798b0) Jul 29 16:19:42 [kernel] Call Trace: Jul 29 16:19:42 [kernel] [<ffffffff8101f4d0>] default_wake_function+0x0/0x10 Jul 29 16:19:42 [kernel] [<ffffffff88054154>] :irda:__lock_irda_stream_recvmsg+0x44/0x70 Jul 29 16:19:42 [kernel] [<ffffffff8126f5e2>] sock_aio_read+0x102/0x130 Jul 29 16:19:42 [kernel] [<ffffffff81069aef>] do_sync_read+0xcf/0x120 Jul 29 16:19:42 [kernel] [<ffffffff810393f0>] autoremove_wake_function+0x0/0x30 Jul 29 16:19:42 [kernel] [<ffffffff811909e3>] tty_ldisc_deref+0x63/0x80 Jul 29 16:19:42 [kernel] [<ffffffff811924cc>] tty_write+0x21c/0x250 Jul 29 16:19:42 [kernel] [<ffffffff8106a460>] vfs_read+0xd0/0x180 Jul 29 16:19:42 [kernel] [<ffffffff8106a963>] sys_read+0x53/0x90 Jul 29 16:19:42 [kernel] [<ffffffff81009b3e>] system_call+0x7e/0x83 Jul 29 16:19:42 [kernel] Code: f0 0f ba 68 08 01 48 8b 7d 68 48 8d 74 24 20 e8 22 37 fe f8 Jul 29 16:19:42 [kernel] RIP [<ffffffff88055f6a>] :irda:irda_recvmsg_stream+0x11a/0x300 Jul 29 16:19:42 [kernel] RSP <ffff810045a35c88> Jul 29 16:23:39 [kernel] IrLAP, no activity on link! - Last output repeated 3 times - Jul 29 16:30:41 [kernel] usb 2-3: USB disconnect, address 9 Jul 29 16:30:41 [kernel] drivers/net/irda/ksdazzle-sir.c: kingsun_rcv_irq: urb a synchronously failed - -108 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel