From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbbJENBm (ORCPT ); Mon, 5 Oct 2015 09:01:42 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:50663 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751285AbbJENBa (ORCPT ); Mon, 5 Oct 2015 09:01:30 -0400 From: "Rafael J. Wysocki" To: Pavel Machek Cc: Tomeu Vizoso , "linux-pm@vger.kernel.org" , Alan Stern , martyn.welch@collabora.co.uk, "linux-kernel@vger.kernel.org" , Len Brown , Kevin Hilman , Greg Kroah-Hartman , Ulf Hansson Subject: Re: [PATCH v5 1/2] PM / sleep: Go direct_complete if driver has no callbacks Date: Mon, 05 Oct 2015 15:29:59 +0200 Message-ID: <5808910.FQ4CPUCAtb@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.1.0-rc5+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151005090727.GA24851@xo-6d-61-c0.localdomain> References: <1443529760-17612-1-git-send-email-tomeu.vizoso@collabora.com> <20151005090727.GA24851@xo-6d-61-c0.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, October 05, 2015 11:07:27 AM Pavel Machek wrote: > On Mon 2015-10-05 10:25:45, Tomeu Vizoso wrote: > > On 4 October 2015 at 17:16, Pavel Machek wrote: > > > On Tue 2015-09-29 14:29:19, Tomeu Vizoso wrote: > > >> If a suitable prepare callback cannot be found for a given device and > > >> its driver has no PM callbacks at all, assume that it can go direct to > > >> complete when the system goes to sleep. > > >> > > >> The reason for this is that there's lots of devices in a system that do > > >> no PM at all and there's no reason for them to prevent their ancestors > > >> to do direct_complete if they can support it. > > > > > > Dunno. This sounds like asking for trouble. Even if most devices can handle > > > this, is not this bound to introduce some bugs? > > > > Hi Pavel, > > > > in which situations do you think that this could be problematic? > > Well.. driver with no PM callbacks probably works "by accident", How exactly? Do you have at least one example of that? Thanks, Rafael