From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH V2] PM / Runtime: Respect autosuspend when idle triggers suspend Date: Mon, 14 Oct 2013 16:43:56 -0700 Message-ID: <87li1vh0zn.fsf@linaro.org> References: <1381735264-3077-1-git-send-email-ulf.hansson@linaro.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mail-pd0-f174.google.com ([209.85.192.174]:48399 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756848Ab3JNXoA (ORCPT ); Mon, 14 Oct 2013 19:44:00 -0400 Received: by mail-pd0-f174.google.com with SMTP id y13so8052718pdi.19 for ; Mon, 14 Oct 2013 16:44:00 -0700 (PDT) In-Reply-To: <1381735264-3077-1-git-send-email-ulf.hansson@linaro.org> (Ulf Hansson's message of "Mon, 14 Oct 2013 09:21:04 +0200") Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Ulf Hansson Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org, Alan Stern , Mika Westerberg , Rob Landley , Chris Ball , linux-mmc@vger.kernel.org Ulf Hansson writes: > For devices which don't have a .runtime_idle callback or if it returns > 0, rpm_idle will end up in triggering a call to rpm_suspend, thus > trying to carry out a runtime_suspend directly from runtime_idle. > > In the above situation we want to respect devices which has enabled > autosuspend, we therfore append the flag sent to rpm_suspend with > RPM_AUTO. > > Do note that driver's still needs to update the device last busy mark, > to control the delay for this circumstance. > > Updated runtime PM documentation accordingly. > > Cc: Alan Stern > Cc: Mika Westerberg > Cc: Kevin Hilman > Cc: Rob Landley > Cc: Chris Ball > Cc: linux-mmc@vger.kernel.org > Signed-off-by: Ulf Hansson Acked-by: Kevin Hilman