From owner-freebsd-usb@FreeBSD.ORG Mon Oct 19 18:58:56 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 D820B106568B for ; Mon, 19 Oct 2009 18:58:56 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 12D8A8FC19 for ; Mon, 19 Oct 2009 18:58:56 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 9D9CD39824; Mon, 19 Oct 2009 20:58:52 +0200 (SAST) Date: Mon, 19 Oct 2009 20:58:52 +0200 From: John Hay To: Hans Petter Selasky Message-ID: <20091019185852.GA99922@zibbi.meraka.csir.co.za> References: <20091018153910.375f8013@baby-jane.lamaiziere.net> <200910181947.54372.hselasky@c2i.net> <20091018184031.GA5662@zibbi.meraka.csir.co.za> <200910190219.49761.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200910190219.49761.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-usb@freebsd.org Subject: Re: [8.0] hplip3/ugen printer problem 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: Mon, 19 Oct 2009 18:58:56 -0000 On Mon, Oct 19, 2009 at 02:19:49AM +0200, Hans Petter Selasky wrote: > On Sunday 18 October 2009 20:40:31 John Hay wrote: > > > > io/hpmud/musb.c 1028: bulk_write failed buf=0xbfbfc93c size=8192 > > > > len=-60: > > Error -60 means that the transfer timed out. > > Maybe the timeout given by the driver is too strict. > > Try increasing the timeout, or change the usb_bulk_write() code into > temporarily using no timeout, timeout=0. With a timeout of 0 it is working properly. What unit is timeout? The comments in the code seems to think it is in milliseconds and they set it to 72 hours (72*3600*1000) because they actually have a timeout thread to handle timeouts. Both the above value and that times 1000 seem to timeout in about 4-5 seconds. The file I have been editing: work/hplip-3.9.8/io/hpmud/musb.c John -- John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org