Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754143AbZKPVGF (ORCPT ); Mon, 16 Nov 2009 16:06:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754087AbZKPVGE (ORCPT ); Mon, 16 Nov 2009 16:06:04 -0500 Received: from cavan.codon.org.uk ([93.93.128.6]:60964 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753994AbZKPVGD (ORCPT ); Mon, 16 Nov 2009 16:06:03 -0500 Date: Mon, 16 Nov 2009 21:05:45 +0000 From: Matthew Garrett To: Alan Stern Cc: "Rafael J. Wysocki" , pm list , LKML , Linux PCI , ACPI Devel Maling List , Jesse Barnes , Oliver Neukum , Shaohua Li , Bjorn Helgaas Subject: Re: [RFC][PATCH 1/10] PM: Add flag for devices capable of generating run-time wake-up events Message-ID: <20091116210545.GA29696@srcf.ucam.org> References: <200911162152.38333.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1011 Lines: 27 On Mon, Nov 16, 2009 at 04:00:49PM -0500, Alan Stern wrote: > On Mon, 16 Nov 2009, Rafael J. Wysocki wrote: > > Yes, in general. The platform. > > And for non-platform devices (hot-pluggable, for example)? Presumably > you would want the driver that detects and registers the device to set > this flag. Are there any cases where the bus code won't know this? > > > 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 about Matthew's example of an ACPI GPE which might or might not > cause a runtime wake-up event, depending on the AML code in the BIOS? The platform knows whether or not that's the case. -- Matthew Garrett | mjg59@srcf.ucam.org -- 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/