From owner-freebsd-usb@FreeBSD.ORG Sat Feb 9 22:35:15 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 37A53F70 for ; Sat, 9 Feb 2013 22:35:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id AA3F0B4C for ; Sat, 9 Feb 2013 22:35:14 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 375235207; Sat, 09 Feb 2013 23:35:06 +0100 From: Hans Petter Selasky To: Paul Schenkeveld Subject: Re: Pencam does not attach Date: Sat, 9 Feb 2013 23:36:15 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <20130209125156.GA15557@psconsult.nl> <201302091556.53324.hselasky@c2i.net> <20130209200403.GA58311@psconsult.nl> In-Reply-To: <20130209200403.GA58311@psconsult.nl> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2013 22:35:15 -0000 On Saturday 09 February 2013 21:04:03 Paul Schenkeveld wrote: > On Sat, Feb 09, 2013 at 03:56:53PM +0100, Hans Petter Selasky wrote: > > On Saturday 09 February 2013 13:51:56 Paul Schenkeveld wrote: > > > Hi, > > > > > > I tried to use a USB pen camera with flash drive but get no more than: > > > usbus7: port reset timeout > > > uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT > > > uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port > > > 1 usbd_set_config_index: could not read device status: > > > USB_ERR_STALLED usbd_req_re_enumerate: addr=3, set address failed! > > > (USB_ERR_STALLED, > > > > > > ignored) usbd_req_re_enumerate: addr=3, set address failed! > > > (USB_ERR_STALLED, ignored) usb_alloc_device: Failure selecting > > > configuration index 0:USB_ERR_STALLED, port 1, addr 3 (ignored) > > > ugen7.3: at usbus7 > > > > > > ugen7.3: at usbus7 (disconnected) > > > > > > It works fine on a Macbook so I know it's not broken. > > > > > > Any chance of getting this to work? > > > > > > BTW I'm running 8.3-STABLE with a kernel built in May 2012. > > > > Hi, > > > > > With kind regards, > > > > You should try 8-stable first. There has been some timing fixes in this > > area. > > Just compiled a 8-STABLE kernel (svn rev 246578). Initially I get the > almost same errors as above: > > usbus7: port reset timeout > uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT > uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1 > usbd_set_config_index: could not read device status: USB_ERR_STALLED > usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, > ignored) usbd_req_re_enumerate: addr=3, set address failed! > (USB_ERR_STALLED, ignored) usb_alloc_device: Failure selecting > configuration index 0:USB_ERR_STALLED, port 1, addr 3 (ignored) ugen7.3: > at usbus7 > ugen7.3: at usbus7 (disconnected) > > > See: sysctl hw.usb.timings > > Could not find documentation but with guessing and trying I got rid of > the first three messages using hw.usb.timings.port_powerup_delay=100: > > usbd_set_config_index: could not read device status: USB_ERR_STALLED > usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, > ignored) usbd_req_re_enumerate: addr=3, set address failed! > (USB_ERR_STALLED, ignored) usb_alloc_device: Failure selecting > configuration index 0:USB_ERR_STALLED, port 2, addr 3 (ignored) ugen7.3: > at usbus7 > ugen7.3: at usbus7 (disconnected) > > Anything else I should try? Hi, Can you identify the limit at which your device works / does not work by using binary search. Also try to play with the other tunables, and see what happens! --HPS