Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755450AbaFWS5n (ORCPT ); Mon, 23 Jun 2014 14:57:43 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:63312 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753099AbaFWS5k (ORCPT ); Mon, 23 Jun 2014 14:57:40 -0400 From: Kevin Hilman To: Alan Stern Cc: Allen Yu , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Greg Kroah-Hartman , "linux-pm\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" Subject: Re: [PATCH 1/1] PM / Runtime: let rpm_resume fail if rpm disabled and device suspended. References: Date: Mon, 23 Jun 2014 11:57:37 -0700 In-Reply-To: (Alan Stern's message of "Sat, 21 Jun 2014 09:34:28 -0400 (EDT)") Message-ID: <7hk387pi72.fsf@paris.lan> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alan Stern writes: [...] > What we really need to figure out is how to tell the PM core which > devices may safely have their runtime callbacks invoked during system > suspend. For those devices, the core can avoid calling > pm_runtime_disable() during the suspend_late phase. That would address > your requirements, right? Yes, and something I've attempted a few times over the years, most recently during the introduction of the pm_runtime_force* functions[1], which I thought was again an attempt to work around this issue. I don't think Rafael has ever been too thrilled with that idea (including the last time[2]), but I think we're to a point now that we have to manage this somehow. My attempt to let the bus/subsystem/pm_domain set a flag might be too simplistic, but I do agree we do need som way to tell the PM core that runtime PM callbacks are (still) safe. Kevin [1] http://marc.info/?l=linux-pm&m=139343222014989&w=2 [2] http://marc.info/?l=linux-pm&m=139346327619875&w=2 -- 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/