Date: Mon, 28 Oct 2013 10:50:19 +0100 From: Hans Petter Selasky <hps@bitfrost.no> To: =?ISO-8859-1?Q?Aur=E9lien_Croc_de_Suray?= <aurelien@ap2c.org> Cc: freebsd-usb@freebsd.org Subject: Re: ULPT error: ulpt_status_callback: error=USB_ERR_STALLED Message-ID: <526E335B.7080309@bitfrost.no> In-Reply-To: <4789603.WnW2OTVhVR@is010471-220.intra.cea.fr> References: <197EDBA6-79AC-47F3-A482-84A4FF543E8D@ap2c.org> <8647743.ye3eY2zjhq@is010471-220.intra.cea.fr> <526E2D49.1040602@bitfrost.no> <4789603.WnW2OTVhVR@is010471-220.intra.cea.fr>
index | next in thread | previous in thread | raw e-mail
On 10/28/13 10:37, Aurélien Croc de Suray wrote:
>> You can try to edit the "sys/dev/usb/serial/ulpt.c" driver and remove
>> the reading of the status message.
>
> Please can you be more precise? I'm not sure what to do. And do you think this
> will solve the reading / writing problem?
>
>> I think your device might be counterfeit, given the bad spelling of the
>> manufacturer. This string comes from the device itself.
>
> Well, very nice... I bought it in a famous computer shop..
>
> Thank you again for your help
>
Hi,
Look for function "ulpt_watchdog()":
static void
ulpt_watchdog(void *arg)
{
struct ulpt_softc *sc = arg;
mtx_assert(&sc->sc_mtx, MA_OWNED);
#if 0 /* add this */
/*
* Only read status while the device is not opened, due to
* possible hardware or firmware bug in some printers.
*/
if (sc->sc_fflags == 0)
usbd_transfer_start(sc->sc_xfer[ULPT_INTR_DT_RD]);
#endif /* add this */
usb_callout_reset(&sc->sc_watchdog,
hz, &ulpt_watchdog, sc);
}
--HPS
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?526E335B.7080309>
