Date: Tue, 20 Oct 2009 05:49:49 +0200 From: John Hay <jhay@meraka.org.za> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: [8.0] hplip3/ugen printer problem Message-ID: <20091020034949.GA35642@zibbi.meraka.csir.co.za> In-Reply-To: <20091019230403.305e5db7@baby-jane.lamaiziere.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <hselasky@c2i.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091020034949.GA35642>