From owner-freebsd-current@FreeBSD.ORG Fri Nov 7 18:33:12 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 7710B1065672 for ; Fri, 7 Nov 2008 18:33:12 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.swipnet.se [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id D62288FC14 for ; Fri, 7 Nov 2008 18:33:11 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=d6BVkb5LuPPVEe4iNQMLyA==:17 a=6I5d2MoRAAAA:8 a=vafWJlg1LcBArlRLE9UA:9 a=9aZoHJbmXoIg0w1jdO8A:7 a=0X-v5F2RZJnm5xXsLTGUayu0pGkA:4 a=LY0hPdMaydYA:10 Received: from [62.113.135.6] (account mc467741@c2i.net [62.113.135.6] verified) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 401703338; Fri, 07 Nov 2008 19:33:10 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 7 Nov 2008 19:35:17 +0100 User-Agent: KMail/1.9.7 References: <200811071134.42761.shoesoft@gmx.net> <200811071842.50044.hselasky@c2i.net> <200811071851.52961.shoesoft@gmx.net> In-Reply-To: <200811071851.52961.shoesoft@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811071935.19412.hselasky@c2i.net> Cc: Stefan Ehmann Subject: Re: usb2: scanner no longer working 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, 07 Nov 2008 18:33:12 -0000 On Friday 07 November 2008, Stefan Ehmann wrote: > On Friday 07 November 2008 18:42:49 Hans Petter Selasky wrote: > > On Friday 07 November 2008, Hans Petter Selasky wrote: > > > Hi, > > > > > > Could you dump the current config descriptor of your scanner? > > > > > > usbconfig -u 3 -a 2 dump_curr_config_desc > > # usbconfig -u 3 -a 2 dump_curr_config_desc > ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0027 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00a0 > bMaxPower = 0x00fa > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0002 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0083 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0001 > bInterval = 0x0008 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > > It can also be a set-config issue. > > > > > > --HPS > > > > Also get me the device descriptor through: > > > > usbconfig -u 3 -a 2 dump_device_desc > > # usbconfig -u 3 -a 2 dump_device_desc > ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x00ff > bDeviceSubClass = 0x00ff > bDeviceProtocol = 0x00ff > bMaxPacketSize0 = 0x0040 > idVendor = 0x04a9 > idProduct = 0x221c > bcdDevice = 0x0306 > iManufacturer = 0x0001 LangId:0x0409 > iProduct = 0x0002 LangId:0x0409 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > > 3 and 2 are the numbers after ugen, like ugen3.2 > > To your other mail: > I'm running i386. HUB debugging didn't output any obvious errors. Hi, Try the following patch to libusb20. I suspect that it is the set_configuration call that makes trouble! http://perforce.freebsd.org/chv.cgi?CH=152628 Thanks for reporting. My private SVN repository has also been updated to include this patch if you are using that. --HPS