Fwd: USB to parallel for printer HP LaserJet 4mL
Hans Petter Selasky
hps at selasky.org
Mon Jun 16 10:10:21 UTC 2014
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
More information about the freebsd-usb
mailing list