From owner-freebsd-current@FreeBSD.ORG Tue May 19 05:33:32 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 621BB106566B for ; Tue, 19 May 2009 05:33:32 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id 266418FC0C for ; Tue, 19 May 2009 05:33:32 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by rv-out-0506.google.com with SMTP id k40so2090509rvb.43 for ; Mon, 18 May 2009 22:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:organization:x-operation-sytem; bh=LSbncjB4tEPCs4xMc+ukO6oxgOG+hQZGzlWUmYHIC04=; b=PyS+3cGjFnyGrVjoUhGY+n+zhAelPpMZoTG6BEydfiChYNxQidp/Ne44D/Wck2jWQD +j2X4b0TiEl3zqK17zza51uPf2cg0wdRbcCzOBSWAJbBM/cLBgqSd6wQWiP7H2BhNg1i uZp92Kn0DheN3R2e23dn1ndPiW1Uh3EZiMiRM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:organization:x-operation-sytem; b=JKsU2SFNINsaBf+R0oF2wRRsrkS07DxKpfIvzLIiSvWeS1bAanEBRZGl1K405Z/ZWe +BGL+KGg5QlX5a2X7Q0pM9nrWrXVH/lB4kYqFkUMapFyS1izru4E9tgQVgnUjkxBhWF+ AG4PnZbAY78OcRSUFigbCTGLa/DUJnk9xkrd0= Received: by 10.140.173.17 with SMTP id v17mr2651892rve.3.1242711211847; Mon, 18 May 2009 22:33:31 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id g31sm15352877rvb.33.2009.05.18.22.33.30 (version=SSLv3 cipher=RC4-MD5); Mon, 18 May 2009 22:33:31 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Tue, 19 May 2009 14:33:26 +0900 From: Weongyo Jeong Date: Tue, 19 May 2009 14:33:26 +0900 To: Hans Petter Selasky Message-ID: <20090519053326.GF42412@weongyo.cdnetworks.kr> Mail-Followup-To: Hans Petter Selasky , freebsd-current@freebsd.org, Lucius Windschuh References: <20090407022956.GA71377@weongyo.cdnetworks.kr> <90a5caac0905161502x3771072n22d58111a235de24@mail.gmail.com> <200905182349.06150.hselasky@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="WYTEVAkct0FjGQmd" Content-Disposition: inline In-Reply-To: <200905182349.06150.hselasky@freebsd.org> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Lucius Windschuh , freebsd-current@freebsd.org Subject: Re: HEADSUP: uath(4) has been committed. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 05:33:32 -0000 --WYTEVAkct0FjGQmd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 18, 2009 at 11:49:05PM +0200, Hans Petter Selasky wrote: > On Sunday 17 May 2009, Lucius Windschuh wrote: > > 2009/4/7 Weongyo Jeong > > > > Here's one more device, which is currently not listed in if_uath.c: > > ugen3.10: at usbus3, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x00ff > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x1385 > idProduct = 0x5f01 > bcdDevice = 0x0001 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <1.0> > bNumConfigurations = 0x0001 > > Resulting dmesg after running uathload: > > uath0: timeout waiting for reply to cmd 0x4 (4) > uath0: could not read capability 2 > uath0: could not get device capabilities > device_attach: uath0 attach returned 35 > uath0: timeout waiting for reply to cmd 0x1 (1) > uath0: could not initialize adapter > device_attach: uath0 attach returned 35 > > Can this be fixed? Because I don't have WPN111 stick which failed to buy in my local store I couldn't test it fully but one thing you can try is that adding some delays for each usb commands could be helpful like a attached patch. Could you please test with attached patch and show results? I think you can increase or decrease delay values or add delays at other places. regards, Weongyo Jeong --WYTEVAkct0FjGQmd Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch_uath_20090519_wpn111.diff" Index: if_uath.c =================================================================== --- if_uath.c (revision 192371) +++ if_uath.c (working copy) @@ -392,6 +392,7 @@ device_printf(sc->sc_dev, "could not initialize adapter\n"); goto fail3; } + usb2_pause_mtx(NULL, 500); error = uath_get_devcap(sc); if (error != 0) { device_printf(sc->sc_dev, @@ -842,6 +843,7 @@ uath_get_devcap(struct uath_softc *sc) { #define GETCAP(x, v) do { \ + usb2_pause_mtx(NULL, 200); \ error = uath_get_capability(sc, x, &v); \ if (error != 0) \ return (error); \ --WYTEVAkct0FjGQmd--