From owner-freebsd-usb@FreeBSD.ORG Fri Nov 6 08:30:38 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAE381065676 for ; Fri, 6 Nov 2009 08:30:38 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 101DD8FC1C for ; Fri, 6 Nov 2009 08:30:37 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=AyTOrmMljvoA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=TYaeS1Br8n0RPUNxP_MA:9 a=Li73T4bQhIGLcz3m36EA:7 a=qLa0h62P3BIy9YZZ0N-CBEdYlu4A:4 a=SV7veod9ZcQA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1145357278; Fri, 06 Nov 2009 09:30:35 +0100 From: Hans Petter Selasky To: "Alexey Markov" Date: Fri, 6 Nov 2009 09:29:39 +0100 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200911051359.49517.hselasky@c2i.net> <8E4D6619143F4948997186D3DF828D66@complitex.local> In-Reply-To: <8E4D6619143F4948997186D3DF828D66@complitex.local> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200911060929.40525.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: AnyDATA ADU-500A USB-modem and a lot of "ubsa_cfg_request" errors X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2009 08:30:38 -0000 On Friday 06 November 2009 08:31:05 Alexey Markov wrote: > Hello, Hans! > On November, 05 2009 at 15:59 you wrote to freebsd-usb@freebsd.org: > > ??>> except that I got a lot of such messages on console when I run ppp: > ??>> > ??>> ubsa_cfg_request:371: device request failed, err=USB_ERROR_STALLED > ??>> > ??>> I really want to work it out, and I have some spare time for > ??>> experiments, but haven't any experience of debuging kernel drivers. > ??>> Can anybody give me a clue to solve this little problem? > > HPS> Did you look in the source code: > HPS> /sys/dev/usb/serial/ubsa.c > > Yes, of course! Line #317 belongs to ubsa_cfg_request(), which just calls > another function, ucom_cfg_do_request(), with some parameters. But this > function is called several times in the code, so I've changed code of > ubsa_cfg_request() function to see, which config requests are failed: > > DPRINTFN(0, "device request failed, err=%s, index=%d, value=%d "... > > I have got a lot of messages like this one: > > ubsa_cfg_request:371: device request failed, err=USB_ERROR_STALLED, > index=10, value=1 (ignored) > > where index/value pairs sequence is: > > 10/1, 11/1, 12/0, 0/24, 3/0, 2/3, 1/0, 16/384, 0/2, 3/0 and so forth. > > It seems, that driver tried to set some config parameters like DTR, RTS, > BAUDRATE etc, and failed. But after all, modem is working (maybe, with > non-optimal settings or default settings). > > So, I need an advice: what can I do to find the cause of failed config > requests? Hi, Maybe you device belongs in the ugensa.c driver and not ubsa.c if it does not support all those DTR/RTS ... settings? Do you have a datasheet for the modem in question? --HPS