From owner-freebsd-current@FreeBSD.ORG Mon Feb 23 08:13:35 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 9D8991065678 for ; Mon, 23 Feb 2009 08:13:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 08E398FC0A for ; Mon, 23 Feb 2009 08:13:34 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=XUcS8i8b-cUA:10 a=zNI71On1IoMA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=6I5d2MoRAAAA:8 a=fzyQZn3sjPVyWtC_bjcA:9 a=zyWdRaBsjzSeTeng-a4A:7 a=PW6w9mCGF9swCPVDJEme_2UuHMgA:4 a=50e4U0PicR4A:10 a=SV7veod9ZcQA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1203222026; Mon, 23 Feb 2009 09:13:32 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Mon, 23 Feb 2009 09:16:01 +0100 User-Agent: KMail/1.9.7 References: <179b97fb0902221451sbe6f440m47cf313e21194721@mail.gmail.com> In-Reply-To: <179b97fb0902221451sbe6f440m47cf313e21194721@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902230916.02436.hselasky@c2i.net> Cc: Brandon Gooch , jkim@freebsd.org Subject: Re: Disabled USB ports after suspend/resume X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 08:13:35 -0000 Hi, I think it might be a problem that the explore thread is running at the same time we are doing a resume on the hardware. What happens if you run: usbconfig -u xxx -a yyy set_config 0 On one of the root HUBs ? Do the devices re-appear ? And if you replug the device? Does it re-appear? What you can try is to run the "detach()" instead of "suspend()" and "attach()" instead of "resume()" for ehci/ohci/uhci. See sys/dev/usb2/controller . Right now we are moving around the files, else I could have sent you a patch. --HPS On Sunday 22 February 2009, Brandon Gooch wrote: > I've been using Jung-uk Kim's suspend patches for amd64 since before > the new USB stack: > > http://people.freebsd.org/~jkim/amd64_suspend.diff > > Now when I suspend and resume, I lose USB ports. > > >From dmesg: > > ugen0.2: at usbus0 (disconnected) > stray irq0 > usbus2: port reset timeout > uhub_reattach_port:348: port 2 reset failed, error=USB_ERR_TIMEOUT > uhub_reattach_port:434: device problem (USB_ERR_TIMEOUT), disabling port 2 > > I'm at svn rev. 188909. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"