From owner-freebsd-usb@FreeBSD.ORG Mon Jun 16 10:10:21 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69BE1B9 for ; Mon, 16 Jun 2014 10:10:21 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 28DB72F04 for ; Mon, 16 Jun 2014 10:10:21 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 714AD1FE045; Mon, 16 Jun 2014 12:10:19 +0200 (CEST) Message-ID: <539EC2A1.6040803@selasky.org> Date: Mon, 16 Jun 2014 12:10:41 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Matthias Apitz Subject: Re: Fwd: USB to parallel for printer HP LaserJet 4mL References: <20140614181138.GA1598@La-Habana> <539C9181.10304@selasky.org> <20140616054141.GA1358@La-Habana> <539E87EF.9080404@selasky.org> <20140616065050.GA1552@La-Habana> <539E94C5.50405@selasky.org> <20140616083302.GA1790@La-Habana> <539EB3D7.7040802@selasky.org> <20140616091858.GA1945@La-Habana> <539EBB4B.2070401@selasky.org> <20140616100709.GA2201@La-Habana> In-Reply-To: <20140616100709.GA2201@La-Habana> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 10:10:21 -0000 On 06/16/14 12:07, Matthias Apitz wrote: > El día Monday, June 16, 2014 a las 11:39:23AM +0200, Hans Petter Selasky escribió: > >> Try to comment out starting of bulk read transfers: >> >> static void >> ulpt_start_read(struct usb_fifo *fifo) >> { >> #if 0 >> struct ulpt_softc *sc = usb_fifo_softc(fifo); >> >> usbd_transfer_start(sc->sc_xfer[ULPT_BULK_DT_RD]); >> #endif >> } > > Hi, > > The code is now: > > static void > ulpt_start_read(struct usb_fifo *fifo) > { > DPRINTF("debugging ulpt.c: %s\n", "ulpt_start_read() skiped ULPT_BULK_DT_RD"); > #if 0 > struct ulpt_softc *sc = usb_fifo_softc(fifo); > > usbd_transfer_start(sc->sc_xfer[ULPT_BULK_DT_RD]); > #endif > } > > but it seems that ulpt_start_read() is never called: What happens if you revert that patch, and do a read first, instead of a write? --HPS