From owner-freebsd-usb@FreeBSD.ORG Sat Mar 17 08:59:04 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 91EA3106564A for ; Sat, 17 Mar 2012 08:59:04 +0000 (UTC) (envelope-from holm@beast.freibergnet.de) Received: from bmail.freibergnet.de (bmail.freibergnet.de [46.4.195.14]) by mx1.freebsd.org (Postfix) with ESMTP id 4BF088FC19 for ; Sat, 17 Mar 2012 08:59:03 +0000 (UTC) Received: from bmail.freibergnet.de (bmail.freibergnet.de [46.4.195.14]) by bmail.freibergnet.de (Postfix) with ESMTP id 664FD929B02E for ; Sat, 17 Mar 2012 09:58:57 +0100 (CET) X-Virus-Scanned: amavisd-new at freibergnet.de Received: from bmail.freibergnet.de ([46.4.195.14]) by bmail.freibergnet.de (bmail.freibergnet.de [46.4.195.14]) (amavisd-new, port 10024) with LMTP id DYSDxNdKonGf for ; Sat, 17 Mar 2012 09:58:53 +0100 (CET) Received: from beast.freibergnet.de (bmail.freibergnet.de [46.4.195.14]) by bmail.freibergnet.de (Postfix) with ESMTP id 36768929A503 for ; Sat, 17 Mar 2012 09:58:53 +0100 (CET) Received: by beast.freibergnet.de (Postfix, from userid 201) id 285BB4B8040; Sat, 17 Mar 2012 09:58:53 +0100 (CET) Date: Sat, 17 Mar 2012 09:58:53 +0100 From: Holm Tiffe To: freebsd-usb@freebsd.org Message-ID: <20120317085853.GA53895@beast.freibergnet.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.3i Organization: FreibergNet Internet Services, TSHT Priority: normal X-Phone: +49-3731-74222 X-Mobile: +49-172-8790741 X-Fax: +49-3731-74200 Subject: Re: USB UHCI Problems on 8-Stable X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: holm@freibergnet.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2012 08:59:04 -0000 >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.. Regards, Holm -- Technik Service u. Handel Tiffe, www.tsht.de, Holm Tiffe, Freiberger Straße 42, 09600 Oberschöna, USt-Id: DE253710583 www.tsht.de, info@tsht.de, Fax +49 3731 74200, Mobil: 0172 8790 741