From owner-freebsd-usb@FreeBSD.ORG Wed May 26 10:27:15 2010 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 B77A91065672 for ; Wed, 26 May 2010 10:27:15 +0000 (UTC) (envelope-from absintheslink@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id 429248FC17 for ; Wed, 26 May 2010 10:27:14 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so197760eyd.9 for ; Wed, 26 May 2010 03:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=hfeMHIwvdEK36mpHLwxIsAeVpZ59H4urisS773HNUrw=; b=NqWGl7PmP8AyAi1nmRqcjLBQGOFwGh7wP6liaTcldDqryzVBlSUEooNzEXqJ49CuSv piPxUNROuToZDwNMAsWTZSu8xvB4BUGQLpGJprs2DUUb/D1nMLtZ14wC/9SUXeFUIQxx QT/b9DB7Z+wQj4Gx5NkanXOSA9UWLoKMvVueQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=YDKduCTmVgl1e9M0GfAfYufdUlUMiNeeYWV7DAM/3Ke1PWJJlztLKhefJaih1x9LvB XRtIZLsGD6f/aRrlSW3k+Ac9D/J7xhtfbcySJ0+qfqKLTqvB/QkN6DB+0GXEDTUW97sZ jGXm20zWB5zkv3y9zE+326nAAMj0KBBjI4fgA= Received: by 10.213.21.204 with SMTP id k12mr1187012ebb.42.1274869634119; Wed, 26 May 2010 03:27:14 -0700 (PDT) Received: from dimitri (4207ds4-fb.0.fullrate.dk [90.184.160.168]) by mx.google.com with ESMTPS id 13sm2915808ewy.1.2010.05.26.03.27.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 May 2010 03:27:12 -0700 (PDT) Date: Wed, 26 May 2010 12:26:59 +0200 From: Nicholas 0 To: Hans Petter Selasky Message-ID: <20100526122659.0f3eb256@dimitri> In-Reply-To: <201003261959.16089.hselasky@c2i.net> References: <20100326193442.6bd27799@dimitri> <201003261959.16089.hselasky@c2i.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.18.3; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: resetting USB after suspend 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: Wed, 26 May 2010 10:27:15 -0000 On Fri, 26 Mar 2010 19:59:15 +0100 Hans Petter Selasky wrote: > On Friday 26 March 2010 19:34:42 Nicholas 0 wrote: > > Sometimes when I resume my ThinkPad X200 (Core 2 Duo, 8.0-RELEASE, > > amd64), my USB ports don't come back online - that is, no power to > > things that I plug in and nothing shows up in dmesg. Reboot fixes > > it. It doesn't seem entirely consistent, sometimes USB is fine after > > suspend, sometimes it isn't. > > > > I'm trying to see if I can find some rhyme or reason as to when this > > occcurs so I can file a bug report and work with someone to get this > > fixed, but in the mean time is there any way to reset the USB > > subsystem/reload the drivers that I can try as a work around? It's > > annoying having to reboot to charge my phone. > > This use-case has not been tested that much. USB can probably do more > to recover the state after PC resume. > > --HPS I tried rebuilding a kernel (latest snapshot of 8-STABLE) without usb and kldunload/loading (uhci, ehci, usb and all the drivers) on suspend/resume to see if that would change this behaviour. It does not: my USB ports are still inactive after resume. The drivers load fine with no errors that I can see, but there's still no reaction when i plug something into the USB ports. For my meagre understanding this would suggest that the bug is not in the USB drivers, but perhaps in the PCI code. Does that sound reasonable? N