From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 17:43:05 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3FB616A4CE for ; Thu, 17 Mar 2005 17:43:04 +0000 (GMT) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDB4343D46 for ; Thu, 17 Mar 2005 17:43:03 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-230-185.daxnet.no ([193.217.230.185] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 125964928; Thu, 17 Mar 2005 18:43:02 +0100 From: Hans Petter Selasky To: "Adam Kropelin" Date: Thu, 17 Mar 2005 18:43:50 +0100 User-Agent: KMail/1.7 References: <07f701c529bf$b0f05540$03c8a8c0@kroptech.com> <200503161504.36260.hselasky@c2i.net> <092001c52a91$6ec1b420$03c8a8c0@kroptech.com> In-Reply-To: <092001c52a91$6ec1b420$03c8a8c0@kroptech.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503171843.52611.hselasky@c2i.net> cc: freebsd-usb@freebsd.org Subject: Re: ugen & uhci hang on 5.3-RELEASE and 6.0-CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 17:43:05 -0000 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