Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jul 2011 22:44:44 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: How to debug a misbehaving usb device (DYMO LabelManager PC)?
Message-ID:  <201107092244.44896.hselasky@c2i.net>
In-Reply-To: <20110709223653.3fda9a73.torfinn.ingolfsen@broadpark.no>
References:  <20110703183320.b5b2aecb.torfinn.ingolfsen@broadpark.no> <201107092229.22653.hselasky@c2i.net> <20110709223653.3fda9a73.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 09 July 2011 22:36:53 Torfinn Ingolfsen wrote:
> On Sat, 09 Jul 2011 22:29:22 +0200
> 
> Hans Petter Selasky <hselasky@c2i.net> wrote:
> > Could you try to reset it?
> > 
> > usbconfig -d X.Y reset
> 
> root@kg-v7# usbconfig -d 0.3
> ugen0.3: <product 0x0011 vendor 0x0922> at usbus0, cfg=255 md=HOST spd=LOW
> (1.5Mbps) pwr=ON root@kg-v7# usbconfig -d 0.3 reset
> root@kg-v7# usbconfig -d 0.3

You could try to change in /sys/dev/usb/usb_device.c:

        /* Set the actual configuration value. */
        err = usbd_req_set_config(udev, NULL, cdp->bConfigurationValue);
        if (err) {
                goto done;
        }

Into:

        /* Set the actual configuration value. */
        err = usbd_req_set_config(udev, NULL, cdp->bConfigurationValue);
        if (err && 0) {
                goto done;
        }
        err = 0;

I think the device has received the set config, though there appears to be 
something wrong about the STALL part, which I think we can safely ignore.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107092244.44896.hselasky>