From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752869AbdDJQgO (ORCPT ); Mon, 10 Apr 2017 12:36:14 -0400 Received: from muru.com ([72.249.23.125]:43940 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbdDJQgM (ORCPT ); Mon, 10 Apr 2017 12:36:12 -0400 Date: Mon, 10 Apr 2017 09:36:03 -0700 From: Tony Lindgren To: Johan Hovold Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Alan Stern , Kevin Hilman , Ulf Hansson , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] PM / Runtime: document autosuspend-helper side effects Message-ID: <20170410163603.GG5339@atomide.com> References: <20170410113825.17399-1-johan@kernel.org> <20170410113825.17399-2-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170410113825.17399-2-johan@kernel.org> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Johan Hovold [170410 04:41]: > Document the fact that the autosuspend delay and enable helpers may > change the power.usage_count and resume or suspend a device depending on > the values of power.autosuspend_delay and power.use_autosuspend. > > Note that this means that a driver must disable autosuspend before > disabling runtime pm on probe errors and on driver unbind if the device > is to be suspended upon return (as a negative delay may otherwise keep > the device resumed). > > Signed-off-by: Johan Hovold Acked-by: Tony Lindgren