From owner-freebsd-usb@FreeBSD.ORG Mon Oct 28 09:49:09 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1E59BDE3 for ; Mon, 28 Oct 2013 09:49:09 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id CD77C2F4F for ; Mon, 28 Oct 2013 09:49:08 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id B41D07A0CA; Mon, 28 Oct 2013 10:49:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id BDA2A8FBAAA; Mon, 28 Oct 2013 10:49:35 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EPOs6+uEX+MB; Mon, 28 Oct 2013 10:49:35 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id EDCDC8FBAA9; Mon, 28 Oct 2013 10:49:34 +0100 (CET) Message-ID: <526E335B.7080309@bitfrost.no> Date: Mon, 28 Oct 2013 10:50:19 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Aur=E9lien_Croc_de_Suray?= Subject: Re: ULPT error: ulpt_status_callback: error=USB_ERR_STALLED 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> In-Reply-To: <4789603.WnW2OTVhVR@is010471-220.intra.cea.fr> 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.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2013 09:49:09 -0000 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