From owner-freebsd-usb@FreeBSD.ORG Fri Sep 15 09:14:45 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D85F616A407 for ; Fri, 15 Sep 2006 09:14:45 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2980443D49 for ; Fri, 15 Sep 2006 09:14:44 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.216.87.149] (HELO [10.0.0.249]) by mailfe06.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 280793907; Fri, 15 Sep 2006 11:14:43 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Jan-Espen Pettersen Date: Fri, 15 Sep 2006 11:14:58 +0200 User-Agent: KMail/1.7 References: <200609091750.k89HoOH3023036@freefall.freebsd.org> In-Reply-To: <200609091750.k89HoOH3023036@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609151114.59381.hselasky@c2i.net> Cc: Subject: Re: usb/103046: [patch] ulpt event driven I/O with select(2) and nonblock 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: Fri, 15 Sep 2006 09:14:45 -0000 On Saturday 09 September 2006 19:50, Jan-Espen Pettersen wrote: > The following reply was made to PR usb/103046; it has been noted by GNATS. > > From: Jan-Espen Pettersen > To: bug-followup@FreeBSD.org, sigsegv@radiotube.org > Cc: > Subject: Re: usb/103046: [patch] ulpt event driven I/O with select(2) and > nonblock > Date: Sat, 09 Sep 2006 19:42:11 +0200 > > I've updated the patch as I spotted errors in the original patch. > The url will still be http://www.radiotube.org/ulpt_poll.diff > > Fixes were: > * Forgot to start transfer (in other words forgot to call usbd_transfer) > for the background read. > * Panic in read callback at pipe abort. > > What I am interested to know about is how this works with printers that > actually do return any backchannel data, since my dumb laser printer does= > > not return data at all. > Hi, My new "ulpt.c" already supports ULPT polling. Maybe you want to try that, and give me some feedback. # # How to install the new USB driver: # # # First get all the sources # (you need /usr/ports/devel/subversion installed): # svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD 6.x/7.x: # cd i4b/trunk/i4b/FreeBSD.usb make S=../src package make install # # Then build a new kernel (with modules) # --HPS