Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965146AbZLGXQk (ORCPT ); Mon, 7 Dec 2009 18:16:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935672AbZLGXQj (ORCPT ); Mon, 7 Dec 2009 18:16:39 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:56594 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S935650AbZLGXQi (ORCPT ); Mon, 7 Dec 2009 18:16:38 -0500 Date: Mon, 7 Dec 2009 18:16:43 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Linus Torvalds cc: Zhang Rui , "Rafael J. Wysocki" , LKML , ACPI Devel Maling List , pm list Subject: Re: [GIT PULL] PM updates for 2.6.33 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1345 Lines: 34 On Mon, 7 Dec 2009, Linus Torvalds wrote: > > > On Mon, 7 Dec 2009, Alan Stern wrote: > > > > There's no need to suspend the individual devices when the whole system > > is going down. They will automatically suspend when the controller > > stops sending out SOF packets, which occurs when the root hub is > > suspended. The USB spec describes this, grandiosely, as a "global > > suspend". > > Ahh, but the sync vs async would then still matter on resume. No? That's complicated. If we assume the devices weren't runtime-suspended before the sleep began, then they would automatically resume themselves when the controller started transmitting EOF packets. So in that case resume would be fast and async wouldn't matter. But if the devices were runtime-suspended, then what? The safest course is to resume them during the system-wide resume. In that case yes, the sync vs async would matter. And if (as happens on many machines) the firmware messes up the controller settings during resume, then all the USB devices would have to be reset -- another slow procedure. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/