Fwd: USB to parallel for printer HP LaserJet 4mL
Matthias Apitz
guru at unixarea.de
Mon Jun 16 10:07:23 UTC 2014
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:
Jun 16 12:02:12 La-Habana kernel: ugen1.2: <Prlific Technology Inc.> at usbus1
Jun 16 12:02:12 La-Habana kernel: ulpt_probe:
Jun 16 12:02:12 La-Habana kernel: ulpt_probe:
Jun 16 12:02:12 La-Habana kernel: ulpt_attach: sc=0xc5839780
Jun 16 12:02:12 La-Habana kernel: ulpt0: <Prlific Technology Inc. IEEE-1284 Controller, class 0/0, rev 1.00/2.00, addr 2> on usbus1
Jun 16 12:02:12 La-Habana kernel: ulpt_attach: setting alternate config number: 1
Jun 16 12:02:12 La-Habana kernel: ulpt0: using bi-directional mode
Jun 16 12:02:12 La-Habana kernel: ulpt_watchdog: debugging ulpt.c: ulpt_watchdog() skiped read status
Jun 16 12:02:13 La-Habana kernel: ulpt_watchdog: debugging ulpt.c: ulpt_watchdog() skiped read status
Jun 16 12:02:13 La-Habana kernel: ulpt_write_callback: state=0x0 actlen=0
Jun 16 12:02:13 La-Habana kernel: ulpt_watchdog: debugging ulpt.c: ulpt_watchdog() skiped read status
Jun 16 12:02:23 La-Habana last message repeated 9 times
Jun 16 12:02:23 La-Habana kernel: ulpt0: at uhub1, port 1, addr 2 (disconnected)
Jun 16 12:02:23 La-Habana kernel: ulpt_detach: sc=0xc5839780
Jun 16 12:02:23 La-Habana kernel: ulpt_write_callback: state=0x2 actlen=0
Jun 16 12:02:24 La-Habana kernel: ulpt_probe:
Jun 16 12:02:24 La-Habana kernel: ulpt_probe:
Jun 16 12:02:24 La-Habana kernel: ulpt_attach: sc=0xc596c600
Jun 16 12:02:24 La-Habana kernel: ulpt0: <Prlific Technology Inc. IEEE-1284 Controller, class 0/0, rev 1.00/2.00, addr 2> on usbus1
Jun 16 12:02:24 La-Habana kernel: ulpt_attach: setting alternate config number: 1
Jun 16 12:02:24 La-Habana kernel: ulpt0: using bi-directional mode
Jun 16 12:02:24 La-Habana kernel: ulpt_watchdog: debugging ulpt.c: ulpt_watchdog() skiped read status
Thx
matthias
--
Matthias Apitz | /"\ ASCII Ribbon Campaign:
E-mail: guru at unixarea.de | \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ | X - No proprietary attachments
phone: +49-170-4527211 | / \ - Respect for open standards
| en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
More information about the freebsd-usb
mailing list