Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2005 18:43:50 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        "Adam Kropelin" <akropel1@rochester.rr.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: ugen & uhci hang on 5.3-RELEASE and 6.0-CURRENT
Message-ID:  <200503171843.52611.hselasky@c2i.net>
In-Reply-To: <092001c52a91$6ec1b420$03c8a8c0@kroptech.com>
References:  <07f701c529bf$b0f05540$03c8a8c0@kroptech.com> <200503161504.36260.hselasky@c2i.net> <092001c52a91$6ec1b420$03c8a8c0@kroptech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 17 March 2005 02:34, Adam Kropelin wrote:
> Hans Petter Selasky wrote:
> > On Wednesday 16 March 2005 01:32, Adam Kropelin wrote:
>
> I gave your driver a run and it seems all of the USB_DO_REQUEST ioctls are
> now failing with EPERM. I am playing some games with transfer lengths that
> might have an affect on things. I've included the code I use for GetReport
> requests which documents the length munging.

Sorry, there seems to be a little incompatibility issue. You need to add:

#define USBD_SHORT_XFER_OK 0x0002 /* allow short reads */

to /sys/dev/usb2/usb.h

Then cd /usr/src/include && make install

Then recompile your software. Maybe I should keep USBD_SHORT_XFER_OK at the 
old value so upgrading won't be a problem ?
Hope this helps.

The ugen driver at /sys/dev/usb2/_ugen.c have a maximum length limit!

Yours
--HPS



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