From owner-freebsd-usb@FreeBSD.ORG Wed Jul 22 18:48:15 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 B1B521065686 for ; Wed, 22 Jul 2009 18:48:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id 479768FC0A for ; Wed, 22 Jul 2009 18:48:14 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=Bx_xhd6jh-gA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=Df502QA6ZqL7aWpEYlsA:9 a=8X0iqUCoZM8VUEckxAKZt7fBeeMA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe09.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 936232103; Wed, 22 Jul 2009 20:48:13 +0200 From: Hans Petter Selasky To: Michael Gmelin Date: Wed, 22 Jul 2009 20:47:59 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <4A62187E.1000506@bindone.de> <200907221910.40562.hselasky@c2i.net> <4A675DED.2000001@bindone.de> In-Reply-To: <4A675DED.2000001@bindone.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907222048.01448.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: [usb2] Garmin Edge 705 disconnects immediately 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: Wed, 22 Jul 2009 18:48:16 -0000 On Wednesday 22 July 2009 20:43:57 Michael Gmelin wrote: > Hans Petter Selasky wrote: > > On Wednesday 22 July 2009 18:00:29 Michael Gmelin wrote: > >> Hans Petter Selasky wrote: > >>> On Wednesday 22 July 2009 15:55:36 Michael Gmelin wrote: > >>>> Hans Petter Selasky wrote: > >>>> > >>>> Did you have a chance to look at this yet? Anything more I could do? > >>>> Thanks! > >>> > >>> Hi, > >>> > >>> Can you try the attached patch. Needs to be applied by hand. > >>> > >>> Then compile new kernel, reboot. > >>> > >>> kldload usb_quirk > >>> > >>> usbconfig -u xxx -a uuu add_dev_quirk_vplh > >>> UQ_CFG_PRESET > >>> > >>> You need to fill in the correct vendor id, product id, lo rev and hi > >>> rev for your device. See the dump_device_desc output for your device. > >>> > >>> --HPS > >> > >> Hello, > >> > >> I merged in the changes to make that quirk work (couldnt use the patches > >> directly because I'm on another version). Unfortunately dump_device_desc > >> doesn't work, because the device disappears before I can get the info > >> (but I have it anyway, so this is no issue). > >> > >> kldload usb2_controller_uhci > >> kldload usb2_storage_mass > >> kldload usb2_quirk > >> usbconfig add_dev_quirk_vplh 0x091e 0x2271 0x0000 0xffff UQ_CFG_PRESET > >> (also tried specifying -u and -a) > >> > >> According to the logs it's still setting config index 0 in > >> usb2_alloc_device (but this config misleading debug ouput I guess, > >> because it calls the patched function later in there). The debug output > >> suggests that the patch is actually working, but the result is the same > > > > Can you redo test with umass unloaded? > > > > --HPS > > Did thatm, same effect, are you interested in the debug output? Could you enable uhub debugging instead of usb debugging? sysctl hw.usb.uhub.debug=15 Send resulting dmesg when you plug your device. --HPS