ugen & uhci hang on 5.3-RELEASE and 6.0-CURRENT

Hans Petter Selasky hselasky at c2i.net
Thu Mar 17 09:43:05 PST 2005


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


More information about the freebsd-usb mailing list