From owner-freebsd-usb@FreeBSD.ORG Sat Mar 17 16:32:31 2012 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 502421065675 for ; Sat, 17 Mar 2012 16:32:31 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id CEA578FC1A for ; Sat, 17 Mar 2012 16:32:30 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 252909752; Sat, 17 Mar 2012 17:32:22 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, holm@freibergnet.de Date: Sat, 17 Mar 2012 17:30:46 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <20120317085853.GA53895@beast.freibergnet.de> In-Reply-To: <20120317085853.GA53895@beast.freibergnet.de> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201203171730.46127.hselasky@c2i.net> Cc: Subject: Re: USB UHCI Problems on 8-Stable 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: Sat, 17 Mar 2012 16:32:31 -0000 On Saturday 17 March 2012 09:58:53 Holm Tiffe wrote: > >Hi, > > > >The BULK transfer stops by a stall. I suspect the UHCI is receiving more > >data than it can, and is hardware programmed to stop it looks like. I > >can't change that behaviour. It is not a bug in the FreeBSD USB driver I > >think. > > > >Try this patch to /usr/ports/devel/openocd/ > > > >make extract patch > > > >ee ./work/openocd-0.5.0/src/jtag/drivers/jlink.c > > Uhh, may I use Vi? :-) > > >Change: > > > >result = jlink_usb_read(jlink, in_length); > > > >Into: > > > >/* must read at least one packet at a time! */ > >result = jlink_usb_read(jlink, in_length + ((-in_length) & 63)); > > > >Then re-compile and try again! > > > >--HPS > > Ok, I'll try that patch(~ sunday eavening, I'm out of town currntly), > but it adresses the problem with openocd. ( which is good anyways). > I is still a bug in FreeBSD's driver that there is now way to > wake up the controller again and I think that should be changed. > (please remember, most Kerenels are running with compiled in drivers, so > thie singe solution is a reboot to reactivate the controller. > I dont know that much about USB, but I sure that FreeBSDs behavior in this > case isn't that what we really want. I think usbconfig -d ugen1.1 reset > schould be made working.. I will think about it. Currently a suspend and resume will do that, though it might be an idea to allow that runtime using usbconfig. --HPS