From owner-freebsd-usb@FreeBSD.ORG Thu Mar 19 07:58:54 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97ED21065672; Thu, 19 Mar 2009 07:58:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.swip.net [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id A07D78FC16; Thu, 19 Mar 2009 07:58:53 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=43LKmNx98UoA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=6I5d2MoRAAAA:8 a=QT6iA2m7k5gMu6kLvjsA:9 a=9iOXPxD_NNUrFgAk0gHR_WediiIA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 465580187; Thu, 19 Mar 2009 08:58:51 +0100 From: Hans Petter Selasky To: Weongyo Jeong Date: Thu, 19 Mar 2009 09:01:23 +0100 User-Agent: KMail/1.9.7 References: <20090318073032.GA12632@weongyo.cdnetworks.kr> <200903181454.18859.hselasky@c2i.net> <20090319021128.GC12632@weongyo.cdnetworks.kr> In-Reply-To: <20090319021128.GC12632@weongyo.cdnetworks.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903190901.23844.hselasky@c2i.net> Cc: Sam Leffler , freebsd-usb@freebsd.org, Andrew Thompson Subject: Re: q: USB_SET_TIMEOUT in ugen. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 07:58:55 -0000 On Thursday 19 March 2009, Weongyo Jeong wrote: > ugen_default_read_callback:384: actlen=0, aframes=0 > ugen_default_read_callback:384: actlen=0, aframes=0 > ugen_read_clear_stall_callback:477: f=0xc4d5b000: stall cleared One difference from the old ugen implementation is that a stall error does not cause any error to be returned to userland! You could try to return a ZLP on errors. Try this patch: http://perforce.freebsd.org/chv.cgi?CH=159423 If you need to distinguish a ZLP from a STALL, then you have to use the new libusb! Ugen is not meant to be a replacement for libusb! --HPS