Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754059AbZKPUve (ORCPT ); Mon, 16 Nov 2009 15:51:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754022AbZKPUvd (ORCPT ); Mon, 16 Nov 2009 15:51:33 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:59532 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753968AbZKPUvc (ORCPT ); Mon, 16 Nov 2009 15:51:32 -0500 From: "Rafael J. Wysocki" To: Alan Stern Subject: Re: [RFC][PATCH 1/10] PM: Add flag for devices capable of generating run-time wake-up events Date: Mon, 16 Nov 2009 21:52:38 +0100 User-Agent: KMail/1.12.3 (Linux/2.6.32-rc7-rjw; KDE/4.3.3; x86_64; ; ) Cc: pm list , LKML , Linux PCI , ACPI Devel Maling List , Jesse Barnes , Matthew Garrett , Oliver Neukum , Shaohua Li , Bjorn Helgaas References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200911162152.38333.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 34 On Monday 16 November 2009, Alan Stern wrote: > On Mon, 16 Nov 2009, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > Apparently, there are devices that can wake up the system from sleep > > states and yet are incapable of generating wake-up events at run > > time. Thus, introduce a flag indicating if given device is capable > > of generating run-time wake-up events. > > This raises the question: Who is responsible for setting the new > flag? The code that registers the device? Yes, in general. The platform. Actually, I needed it for PCI, but I thought it would be better to put it at the core level. > What if the kernel can't tell whether or not the device can generate > runtime wake-up events? Do you have any specific examples in mind? > What if the user wants to override the kernel's setting? Should there > be a sysfs attribute controlling the flag? I have no plans for adding anything like that. Rafael -- 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/