Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932452Ab1BYOy6 (ORCPT ); Fri, 25 Feb 2011 09:54:58 -0500 Received: from cavan.codon.org.uk ([93.93.128.6]:34488 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753792Ab1BYOy5 (ORCPT ); Fri, 25 Feb 2011 09:54:57 -0500 Date: Fri, 25 Feb 2011 14:54:40 +0000 From: Matthew Garrett To: "Tardy, Pierre" Cc: Chris Ball , Pierre Tardy , "Rafael J. Wysocki" , "linux-pm@lists.linux-foundation.org" , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Gao, Yunpeng" Subject: Re: [PATCH v2 2/3] sdhci-pci : Enable runtime PM support Message-ID: <20110225145440.GA31620@srcf.ucam.org> References: <6722fa7986194808f4d69a1e5ba6d3f163b77da9.1297014479.git.pierre.tardy@intel.com> <20110210043718.GA7585@void.printf.net> <20110221204523.GA28419@void.printf.net> <8250E4885F9967469CAC3FB5CBA2CE69935212DEA0@irsmsx501.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8250E4885F9967469CAC3FB5CBA2CE69935212DEA0@irsmsx501.ger.corp.intel.com> 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: 840 Lines: 18 On Fri, Feb 25, 2011 at 07:33:12AM +0000, Tardy, Pierre wrote: > My understanding is the pci driver is not supposed to do any set_power_state/pci_save_state/wake_enable. > Everything is supposed to be generically handle by pci frameworks's runtime_pm impl. > Need confirmation from Rafael. The core can only enable PME generation, it can't configure what generates PMEs. There's a register in sdhci that needs to be programmed to enable wakeups on card insert/removal/interrupt. If you don't then you won't get a PME no matter what the core does. -- 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/