From owner-freebsd-usb@FreeBSD.ORG Tue Oct 20 03:49:51 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 D7763106566C for ; Tue, 20 Oct 2009 03:49:51 +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 013728FC08 for ; Tue, 20 Oct 2009 03:49:51 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 3A66239824; Tue, 20 Oct 2009 05:49:49 +0200 (SAST) Date: Tue, 20 Oct 2009 05:49:49 +0200 From: John Hay To: Hans Petter Selasky Message-ID: <20091020034949.GA35642@zibbi.meraka.csir.co.za> References: <20091018153910.375f8013@baby-jane.lamaiziere.net> <200910192135.09875.hselasky@c2i.net> <20091019194356.GA4815@zibbi.meraka.csir.co.za> <200910192203.35021.hselasky@c2i.net> <20091019230403.305e5db7@baby-jane.lamaiziere.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091019230403.305e5db7@baby-jane.lamaiziere.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: Tue, 20 Oct 2009 03:49:51 -0000 On Mon, Oct 19, 2009 at 11:04:03PM +0200, Patrick Lamaiziere wrote: > Le Mon, 19 Oct 2009 22:03:34 +0200, > Hans Petter Selasky a ?crit : > > Hello, > > > octave> mod(72*3600*1000,65536) > > ans = 5120 //ms > > > > uint16_t timeout; /* in milliseconds */ > > > > I've made the following patch to LibUSB in FreeBSD, which might help. > > Oh yes it helps a lot. It looks ok now. That's cool! I reverted all my hplip changes and only used this change in libusb20_ugen20.c and my printer is working properly. > Thanks a lot for your support (as usual). And thank you John. A big thanks from me too, Hans. > > > http://p4web.freebsd.org/chv.cgi?CH=169605 > > This link does not work : > > --- libusb20_ugen20.c.org 2009-10-19 22:13:57.848638858 +0200 > +++ libusb20_ugen20.c 2009-10-19 22:21:14.843694374 +0200 > @@ -800,7 +800,10 @@ > if (xfer->flags & LIBUSB20_TRANSFER_DO_CLEAR_STALL) { > fsep->flags |= USB_FS_FLAG_CLEAR_STALL; > } > - fsep->timeout = xfer->timeout; > + if (xfer->timeout > 65535) > + fsep->timeout = 65535; > + else > + fsep->timeout = xfer->timeout; > > temp.ep_index = xfer->trIndex; John -- John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org