From owner-freebsd-current@FreeBSD.ORG Thu Jul 16 19:55:34 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64EEB106564A for ; Thu, 16 Jul 2009 19:55:34 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id 26C618FC18 for ; Thu, 16 Jul 2009 19:55:33 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (105.10.87-79.rev.gaoland.net [79.87.10.105]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 3364A63317E; Thu, 16 Jul 2009 21:55:33 +0200 (CEST) Received: from baby-jane.lamaiziere.net (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id 5CBE3BB29; Thu, 16 Jul 2009 21:55:34 +0200 (CEST) Date: Thu, 16 Jul 2009 21:55:28 +0200 From: Patrick Lamaiziere To: Hans Petter Selasky Message-ID: <20090716215528.271fc177@baby-jane.lamaiziere.net> In-Reply-To: <200907130846.51980.hselasky@c2i.net> References: <20090703172600.1971111e@baby-jane.lamaiziere.net> <200907120952.30158.hselasky@c2i.net> <20090713034102.1362d27d@baby-jane.lamaiziere.net> <200907130846.51980.hselasky@c2i.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.4; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: ulpt problem (USB_ERR_IOERROR) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2009 19:55:34 -0000 Le Mon, 13 Jul 2009 08:46:50 +0200, Hans Petter Selasky a =E9crit : > The printing works besides from the status failing? Yes. =20 > > It looks like there is a probem to get the status. FreeBSD 7.0 uses > > a flag USBD_SHORT_XFER_OK, so I tried to add a flag .short_xfer_ok > > =3D 1 and to increase the timeout. But without luck. >=20 > Could you try increasing the timeout to 20 seconds? > Maybe the printer > USB firmware is really simple and can only do one request at a time? Do you mean here? : [ULPT_INTR_DT_RD] =3D { .type =3D UE_CONTROL, ... .timeout =3D 20000, /* 20 second */ If yes, I tried but this does not change anything. I also tried to change the ticks of the callout_reset in usb_watchdog(). But If I remove the transfer start in usb_watchdog() (so I never read the status of the printer), it works well. With cups and without the deframentation of the datas to write it seems to work too (the same configuration as the top of this thread). Are you sure this it required by my printer? Not related but I noticed that usb_write() in usb_dev.c returns -1 if I hit Ctrl-C when doing a "cat file > /dev/unlpt0". Because usb_fifo_wait(f) returns -1 (should be EINTR?). Thanks, regards.