linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Alfred E. Heggestad" <aeh@db.org>
To: Oliver Neukum <oliver@neukum.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] input: driver for USB VoIP phones with CM109 chipset #2
Date: Mon, 04 Aug 2008 22:34:27 +0200	[thread overview]
Message-ID: <489767D3.6070408@db.org> (raw)
In-Reply-To: <200808041356.57928.oliver@neukum.org>

Oliver Neukum wrote:
> Am Montag 04 August 2008 00:04:58 schrieb Alfred E. Heggestad:
>> Oliver Neukum wrote:
>>> Am Samstag 26 Juli 2008 17:55:35 schrieb Alfred E. Heggestad:
>>>> Jul 26 17:32:33 io kernel: hald-addon-keyb[23629]: segfault at 6f6f6c5f ip b7e9855b sp bf9d89dc error 4 in libc-2.6.1.so[b7e28000+144000]
>>>> Jul 26 17:32:43 io kernel: cm109: cm109_urb_ctl_callback: usb_submit_urb (urb_irq) failed -22
>>>> Jul 26 17:33:21 io last message repeated 6 times
>>>> Jul 26 17:34:28 io last message repeated 17 times
>>> This should not happen. Please provide more context. If possible
>>> recompile your kernel with CONFIG_USB_DEBUG.
>>>
>> Hi Oliver
>>
>> sorry for the delay, I was out travelling with no access to CM109 hardware..
>>
>> I recompiled the latest kernel from input-branch with CONFIG_USB_DEBUG enabled,
>> the version reported is 2.6.27-rc1. Below you can see the syslog and the
>> context of events:
> 
> Looks like urb_irq is not properly initialised. Is there really nothing in the syslog?
> Please print out urb->interval
> 

urb->interval == 32

I added some more debugging in the driver, and after the module is loaded,
I press "TAB" in a shell to force Bell/Buzzer.


the syslog reports:


;;;
;;; Insert device:
;;;

Aug  4 22:20:43 io kernel: cm109: Keymap for Komunikate KIP1000 phone loaded
Aug  4 22:20:43 io kernel: cm109 1-2:1.3: usb_probe_interface
Aug  4 22:20:43 io kernel: cm109 1-2:1.3: usb_probe_interface - got id
Aug  4 22:20:43 io kernel: cm109: urb_irq init: interval=32
Aug  4 22:20:43 io kernel: input: CM109 USB driver as /class/input/input13
Aug  4 22:20:43 io kernel: cm109: cm109_urb_ctl_callback: buzzer_pending=0, ctl_urb_pending=0
Aug  4 22:20:43 io kernel: uhci_hcd 0000:00:1f.2: reserve dev 2 ep83-INT, period 32, phase 16, 14 us
Aug  4 22:20:43 io kernel: usbcore: registered new interface driver cm109
Aug  4 22:20:43 io kernel: cm109: CM109 phone driver: 20080726 (C) Alfred E. Heggestad

;;;
;;; Bell/Alarm -> buzzer
;;;

Aug  4 22:20:50 io kernel: cm109: cm109_toggle_buzzer_async: ctl_urb_pending=0 buzzer_pending=0
Aug  4 22:20:50 io kernel: cm109: cm109_submit_buzz_toggle: buzzer_state=1
Aug  4 22:20:50 io kernel: cm109: cm109_urb_ctl_callback: buzzer_pending=0, ctl_urb_pending=1
Aug  4 22:20:50 io kernel: cm109: cm109_urb_ctl_callback: usb_submit_urb (urb_irq) failed -22     <----- error -EINVAL
Aug  4 22:20:50 io kernel: cm109: cm109_toggle_buzzer_async: ctl_urb_pending=0 buzzer_pending=0
Aug  4 22:20:50 io kernel: cm109: cm109_submit_buzz_toggle: buzzer_state=0
Aug  4 22:20:50 io kernel: cm109: cm109_toggle_buzzer_async: ctl_urb_pending=1 buzzer_pending=0
Aug  4 22:20:50 io kernel: cm109: cm109_urb_ctl_callback: buzzer_pending=1, ctl_urb_pending=1
Aug  4 22:20:50 io kernel: cm109: cm109_submit_buzz_toggle: buzzer_state=0
Aug  4 22:20:50 io kernel: cm109: cm109_urb_ctl_callback: buzzer_pending=0, ctl_urb_pending=1
Aug  4 22:20:50 io kernel: cm109: cm109_urb_ctl_callback: usb_submit_urb (urb_irq) failed -22     <---- error -EINVAL

;;;
;;; unplug device:
;;;

Aug  4 22:20:58 io kernel: usbcore: deregistering interface driver cm109
Aug  4 22:20:58 io kernel: uhci_hcd 0000:00:1f.2: shutdown urb cec1a760 ep3in-intr
Aug  4 22:20:58 io kernel: cm109: urb_irq_cb: urb_irq->interval=32
Aug  4 22:20:58 io kernel: uhci_hcd 0000:00:1f.2: release dev 2 ep83-INT, period 32, phase 16, 14 us
Aug  4 22:20:58 io kernel: cm109: cm109_toggle_buzzer_sync: usb_control_msg() failed 4




/alfred

  reply	other threads:[~2008-08-04 20:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-27 12:24 [PATCH] input: driver for USB VoIP phones with CM109 chipset #2 Oliver Neukum
2008-06-28 15:03 ` Alfred E. Heggestad
2008-06-30 11:06   ` Oliver Neukum
2008-07-25 14:14   ` Dmitry Torokhov
2008-07-26 15:55     ` Alfred E. Heggestad
2008-07-26 18:45       ` Oliver Neukum
2008-08-03 22:04         ` Alfred E. Heggestad
2008-08-04 11:56           ` Oliver Neukum
2008-08-04 20:34             ` Alfred E. Heggestad [this message]
2008-08-04 22:08               ` Oliver Neukum
2008-08-05 19:23                 ` Alfred E. Heggestad
2008-08-05 20:14                   ` Dmitry Torokhov
2008-08-05 21:19                     ` Alfred E. Heggestad
2008-08-18 17:47                       ` Dmitry Torokhov
2008-07-29  5:47       ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=489767D3.6070408@db.org \
    --to=aeh@db.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oliver@neukum.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).