Return-path: Received: from mail-qw0-f46.google.com ([209.85.216.46]:35385 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648Ab1A0SUM convert rfc822-to-8bit (ORCPT ); Thu, 27 Jan 2011 13:20:12 -0500 MIME-Version: 1.0 In-Reply-To: <87k4hrtfcb.fsf@ti.com> References: <201012221329.40251.rjw@sisk.pl> <87k4hrtfcb.fsf@ti.com> Date: Thu, 27 Jan 2011 19:20:10 +0100 Message-ID: Subject: Re: [linux-pm] subtle pm_runtime_put_sync race and sdio functions From: Vitaly Wool To: Kevin Hilman Cc: "Rafael J. Wysocki" , linux-mmc@vger.kernel.org, linux-wireless@vger.kernel.org, Ido Yariv , linux-pm@lists.linux-foundation.org, Johannes Berg Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Kevin, > Therefore, what is ideally needed is the ability for A's suspend to > simply call pm_runtime_suspend() so the subsystem can do the work. > However, since runtime transitions are locked out by this time, that > doesn't work. ?IOW, what is needed is a way for a system suspend to say > "please finish the runtime suspend that was already requested." > > What I've done to work around this in driver A is to manually check > pm_runtime_suspended() and directly call the subsystem's runtime > suspend/resume (patch below[1]. ?NOTE, I've used the _noirq methods to > ensure device A is available when device B needs it.) suppose this driver runs on a platform that has runtime PM disabled. How is it going to work then? Thanks, Vitaly