From owner-freebsd-usb@FreeBSD.ORG Wed Jul 15 15:29:02 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 0CBC6106564A for ; Wed, 15 Jul 2009 15:29:02 +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 944B98FC13 for ; Wed, 15 Jul 2009 15:29:01 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=O9hCZltEcc0A:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=-Vx5QytSQcJVreFCC4cA:9 a=6RCXJVQH2Z1rvU7DqXwA:7 a=UmXwFn2lmhcTK9MlfO18wyrGvkEA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1277955809; Wed, 15 Jul 2009 17:28:59 +0200 From: Hans Petter Selasky To: MIHIRA Sanpei Yoshiro Date: Wed, 15 Jul 2009 17:28:37 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA1; KDE/4.2.4; i386; ; ) References: <20090714.233517.193688805.sanpei@sanpei.org> <200907141714.27199.hselasky@c2i.net> <20090715.230032.226782063.sanpei@sanpei.org> In-Reply-To: <20090715.230032.226782063.sanpei@sanpei.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907151728.39031.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: ulpt(EPSON PM-820C Inkjet Printer) does not work on 8-current 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: Wed, 15 Jul 2009 15:29:02 -0000 On Wednesday 15 July 2009 16:00:32 MIHIRA Sanpei Yoshiro wrote: > Hi. > > >Replace the USB files in your system with the ones in the attached > > tarball. > > > >Then build a new kernel and report again. > > > >FreeBSD 8-current only. > > > >tar -jxvf usb_files.tar.bz2 -C /sys/dev/usb > > I replace usb stack, and tested. > > > [Problem 1] /etc/devd.conf does not work. > > o patched driver still has problem, I Think. > > > [Problem 2] print job was stop at printing > > at first time, I got success output(with manual printf). > But at second time, still has problem.... > o Printer's status LED was brinking. > o FreeBSD 8-current box was no messages in dmesg /var/log/message. Hi, Try removing the following two pieces of code from sys/dev/usb/serial/ulpt.c: /* clear stall first */ mtx_lock(&sc->sc_mtx); usbd_xfer_set_stall(sc->sc_xfer[ULPT_BULK_DT_RD]); mtx_unlock(&sc->sc_mtx); /* clear stall first */ mtx_lock(&sc->sc_mtx); usbd_xfer_set_stall(sc->sc_xfer[ULPT_BULK_DT_WR]); mtx_unlock(&sc->sc_mtx); Then recompile the kernel or just the ulpt module if you load it. --HPS