Date: Fri, 6 Nov 2009 09:29:39 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: "Alexey Markov" <a.markov@complitex.ru> Cc: freebsd-usb@freebsd.org Subject: Re: AnyDATA ADU-500A USB-modem and a lot of "ubsa_cfg_request" errors Message-ID: <200911060929.40525.hselasky@c2i.net> In-Reply-To: <8E4D6619143F4948997186D3DF828D66@complitex.local> References: <E419495488F746A7ABD4D8D558B4942F@complitex.local> <200911051359.49517.hselasky@c2i.net> <8E4D6619143F4948997186D3DF828D66@complitex.local>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911060929.40525.hselasky>