From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757890AbYDNHvh (ORCPT ); Mon, 14 Apr 2008 03:51:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760010AbYDNHvV (ORCPT ); Mon, 14 Apr 2008 03:51:21 -0400 Received: from gate.crashing.org ([63.228.1.57]:45844 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759846AbYDNHvT (ORCPT ); Mon, 14 Apr 2008 03:51:19 -0400 Subject: Re: [PATCH 1/3] PM: Introduce new top level suspend and hibernation callbacks (rev. 8) From: Benjamin Herrenschmidt Reply-To: benh@kernel.crashing.org To: Oliver Neukum Cc: "Rafael J. Wysocki" , Greg KH , pm list , ACPI Devel Maling List , Alan Stern , Len Brown , LKML , Alexey Starikovskiy , David Brownell , Pavel Machek , Nigel Cunningham , Jesse Barnes , Andrew Morton In-Reply-To: <200804140937.09915.oliver@neukum.org> References: <200804040111.15255.rjw@sisk.pl> <200804140843.06088.oliver@neukum.org> <1208157816.6958.133.camel@pasglop> <200804140937.09915.oliver@neukum.org> Content-Type: text/plain Date: Mon, 14 Apr 2008 17:50:38 +1000 Message-Id: <1208159438.6958.147.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2008-04-14 at 09:37 +0200, Oliver Neukum wrote: > > Prepare() should be the right place to call request_firmware() and if > > that is a problem because of bugs in some USB things, then those bugs > > should be fixed. > > This isn't a bug. USB simply needs to be able to register (and deregister) > children to be fully operative. You cannot expect a subsystem to work > while some core services are not available. No, and that's why the subsystem in question needs to nicely defer the operations that it cannot do immediately to until resume. Nothing new here. In the case of USB, there are plenty of ways it could be done, from blocking in whatever ioctl is causing trouble, to putting to-be-added objects in a list that gets processed later... Ben.