Return-path: Received: from ogre.sisk.pl ([217.79.144.158]:37880 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757185Ab0LRW57 (ORCPT ); Sat, 18 Dec 2010 17:57:59 -0500 From: "Rafael J. Wysocki" To: Alan Stern Subject: Re: [linux-pm] subtle pm_runtime_put_sync race and sdio functions Date: Sat, 18 Dec 2010 23:57:25 +0100 Cc: "Ohad Ben-Cohen" , "Linux-pm mailing list" , linux-mmc@vger.kernel.org, Ido Yariv , linux-wireless@vger.kernel.org, Johannes Berg References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Message-Id: <201012182357.25687.rjw@sisk.pl> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Saturday, December 18, 2010, Alan Stern wrote: > On Sat, 18 Dec 2010, Ohad Ben-Cohen wrote: > > > > Sounds to me like the difference isn't really in the driver, but the > > > core PM subsystem. Why does it care when powering off a device whether > > > it's during suspend, or during runtime? > > > > Agree. > > > > If we can add a dev_pm_info bit, that would allow using runtime PM API > > during suspend/resume transitions, the driver will not have to care. > > > > Rafael what do you think ? Is that totally unacceptable ? > > Have you forgotten about the "echo on >.../power/control" scenario? Well, that change would basically require the runtime PM framework to ignore the usage count for this particular device, which would defeat the framework's purpose to some extent, but it would cover the "echo on > ..." case. However, I'm not going to agree to make that change. Thanks, Rafael