From owner-freebsd-current@FreeBSD.ORG Fri Jul 3 16:52:36 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 D2D751065674 for ; Fri, 3 Jul 2009 16:52:36 +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 9629B8FC21 for ; Fri, 3 Jul 2009 16:52:36 +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 7FA7063317E; Fri, 3 Jul 2009 18:52:35 +0200 (CEST) Received: from baby-jane.lamaiziere.net (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id DC06FB973; Fri, 3 Jul 2009 18:52:33 +0200 (CEST) Date: Fri, 3 Jul 2009 18:52:33 +0200 From: Patrick Lamaiziere To: Hans Petter Selasky Message-ID: <20090703185233.4f7e4a65@baby-jane.lamaiziere.net> In-Reply-To: <200907031756.55253.hselasky@c2i.net> References: <20090703172600.1971111e@baby-jane.lamaiziere.net> <200907031756.55253.hselasky@c2i.net> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; i386-portbld-freebsd7.2) 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: Fri, 03 Jul 2009 16:52:37 -0000 Le Fri, 3 Jul 2009 17:56:54 +0200, Hans Petter Selasky a =E9crit : > Have you tried: >=20 > usbconfig -u XXX -a YYY reset >=20 > Does it help? No, it returns=20 # usbconfig -u 0 -a 2 reset usbconfig: could not reset device: Input/output error Then ulpt detaches ulpt0: at uhub0, port 1, addr 2 (disconnected) ulpt_detach:653: sc=3D0xc317f000 > To me it looks like a problem about your printer USB firmware. Does > it respond to: >=20 > usbconfig -u XXX -a YYY dump_curr_config_desc >=20 > After the first print job? Yes, after the first job: # usbconfig -u 0 -a 2 dump_curr_config_desc ugen0.2: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0020 =20 bNumInterfaces =3D 0x0001 =20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x00c0 =20 bMaxPower =3D 0x0001 =20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004 bInterfaceNumber =3D 0x0000 bAlternateSetting =3D 0x0000 bNumEndpoints =3D 0x0002 bInterfaceClass =3D 0x0007 bInterfaceSubClass =3D 0x0001 bInterfaceProtocol =3D 0x0002 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0001 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040 bInterval =3D 0x0000 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 Endpoint 1 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0082 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040 bInterval =3D 0x0000 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 It looks like there are some problems even with the first job (I missed this point before). ulpt0: using bi-directional ulpt_write_callback:220: state=3D0x0 actlen=3D0=20 ulpt_write_callback:220: state=3D0x1 actlen=3D2889 ulpt_write_callback:220: state=3D0x1 actlen=3D3023 ... ulpt_status_callback:352: error=3DUSB_ERR_STALLED ulpt_write_callback:220: state=3D0x1 actlen=3D16384 ulpt_write_callback:220: state=3D0x1 actlen=3D16384 ... ulpt_status_callback:352: error=3DUSB_ERR_IOERROR ulpt_write_callback:220: state=3D0x1 actlen=3D16384 ulpt_write_callback:220: state=3D0x1 actlen=3D16384 ... ulpt_status_callback:352: error=3DUSB_ERR_IOERROR ulpt_write_callback:220: state=3D0x1 actlen=3D16384 ulpt_write_callback:220: state=3D0x1 actlen=3D15970 ulpt_status_callback:352: error=3DUSB_ERR_IOERROR ulpt_status_callback:352: error=3DUSB_ERR_IOERROR ulpt_status_callback:352: error=3DUSB_ERR_IOERROR ... (ad eternam) If it can help, I can compare with FreeBSD 7.2. Thank you.