Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763678AbYBTVGY (ORCPT ); Wed, 20 Feb 2008 16:06:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753164AbYBTVGQ (ORCPT ); Wed, 20 Feb 2008 16:06:16 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:36409 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752743AbYBTVGP (ORCPT ); Wed, 20 Feb 2008 16:06:15 -0500 Date: Wed, 20 Feb 2008 16:06:14 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Pierre Ossman cc: "Rafael J. Wysocki" , Zdenek Kabelac , Kernel development list Subject: Re: [Bug 10030] Suspend doesn't work when SD card is inserted In-Reply-To: <20080220215127.58b8ec70@mjolnir.drzeus.cx> 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: 785 Lines: 19 On Wed, 20 Feb 2008, Pierre Ossman wrote: > > And why not simply fail the suspend if the resume routine doesn't exist > > and the suspend routine does? Maybe with an error message in the > > system log. > > For the asymmetric case, I guess that would do. But I still want to remove devices when the bus handler has no suspend handling. Then it appears the correct approach is to use the new device_pm_schedule_removal() routine. It schedules the removal of a suspended device for a time when the system suspend is over. 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/