From owner-freebsd-usb@FreeBSD.ORG Mon Oct 19 19:34:28 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 7B90B1065693 for ; Mon, 19 Oct 2009 19:34:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 0FFB08FC1A for ; Mon, 19 Oct 2009 19:34:27 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=kA5CX1E5lTLxHabOlQYA:9 a=inHZdDFrBoh4-Ec-M4d0urmQNwIA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1332564191; Mon, 19 Oct 2009 21:34:08 +0200 From: Hans Petter Selasky To: John Hay Date: Mon, 19 Oct 2009 21:35:08 +0200 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20091018153910.375f8013@baby-jane.lamaiziere.net> <200910190219.49761.hselasky@c2i.net> <20091019185852.GA99922@zibbi.meraka.csir.co.za> In-Reply-To: <20091019185852.GA99922@zibbi.meraka.csir.co.za> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910192135.09875.hselasky@c2i.net> 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 19:34:28 -0000 On Monday 19 October 2009 20:58:52 John Hay wrote: > 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. > Hi, > With a timeout of 0 it is working properly. Great! The USB stack as a clamp on the timeout: xfer->timeout = fs_ep.timeout; if (xfer->timeout > 65535) { xfer->timeout = 65535; } The unit is milliseconds. > 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 Can you report this problem to the authors of hplip-3.9.8 ? It seems FreeBSD behaviour is different that Linux behaviour! --HPS