From owner-freebsd-current@FreeBSD.ORG Fri Dec 12 23:15:14 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F5A21065672; Fri, 12 Dec 2008 23:15:14 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 12ECA8FC19; Fri, 12 Dec 2008 23:15:13 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id mBCNFBg6018008; Sat, 13 Dec 2008 00:15:11 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id mBCNFBTj018007; Sat, 13 Dec 2008 00:15:11 +0100 (CET) (envelope-from olli) Date: Sat, 13 Dec 2008 00:15:11 +0100 (CET) Message-Id: <200812122315.mBCNFBTj018007@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, freebsd-usb@FreeBSD.ORG, hselasky@c2i.net In-Reply-To: X-Newsgroups: list.freebsd-current User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Sat, 13 Dec 2008 00:15:11 +0100 (CET) Cc: Subject: Re: usb2 + scanner HP ScanJet 4300C X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 23:15:14 -0000 Hans Petter Selasky wrote: > On Friday 12 December 2008, Oliver Fromme wrote: > > usb2_alloc_device: > > You could try to edit the code in "sys/dev/usb2/core/usb2_device.c" and loop > two times on the set_config command in "usb2_alloc_device()". > > Or you can try to make the code ignore the return value from the failing > set_config command. Also try to turn on more debugging: > > sysctl hw.usb2.debug=15 Thank you! That got me a step forward. Looping two or even three times didn't help, the set_config just continued to time out and fail. Then I followed your second advice and inserted "err = 0;" so the error was ignored. Now the device attaches! »usbconfig list« says: ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: at usbus0, cfg=255 md=HOST spd=FULL (12Mbps) pwr=ON Does that mean this device needs a quirk entry or something like that? I mean, setting err = 0 is a hack, it's not the proper solution. Unfortunately I wasn't able to check whether it works with SANE because I had to catch the train ... I'll continue with that next week. I hope I can finally make this scanner work ... The uscanner(4) manpage claims the 4300C is supported (for years already), but that wasn't true until now. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "A language that doesn't have everything is actually easier to program in than some that do." -- Dennis M. Ritchie