From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbdLMKAC (ORCPT ); Wed, 13 Dec 2017 05:00:02 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:37782 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbdLMKAA (ORCPT ); Wed, 13 Dec 2017 05:00:00 -0500 X-Google-Smtp-Source: ACJfBotksoctBZ6GsYAO+TkVO5tlFHLdJjoEiFYMzuWvvUMRomtoojcP5qMIJg8CWeuo9BI5x9SKXQ== Date: Wed, 13 Dec 2017 15:29:57 +0530 From: Viresh Kumar To: Greg Kroah-Hartman Cc: Vincent Guittot , Stephen Boyd , Rajendra Nayak , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robdclark@gmail.com, s.hauer@pengutronix.de, l.stach@pengutronix.de, shawnguo@kernel.org, fabio.estevam@nxp.com, nm@ti.com, xuwei5@hisilicon.com, robh+dt@kernel.org Subject: Re: [PATCH V4 03/12] drivers: Add boot constraints core Message-ID: <20171213095957.GA3322@vireshk-i7> References: <2868a37e561cab91ba5495a1e14b9548c8e93c3e.1509284255.git.viresh.kumar@linaro.org> <20171213094205.GB13194@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171213094205.GB13194@kroah.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-12-17, 10:42, Greg Kroah-Hartman wrote: > On Sun, Oct 29, 2017 at 07:18:51PM +0530, Viresh Kumar wrote: > > + /* > > + * Remove boot constraints for both successful and unsuccessful probe(), > > + * except for the case where EPROBE_DEFER is returned by probe(). > > + */ > > + if (ret != -EPROBE_DEFER) > > + dev_boot_constraints_remove(dev); > > This feels odd, but ok, I trust you :) I did this because it may not be right to keep the boot constraints up for a device that failed to probe. For example, a LCD screen may continue wasting power if its device failed to probe. At least I would like to see a real case where we don't want to remove the constraints here on probe failure. > > +/* Forward declarations of constraint specific callbacks */ > > +#endif /* _CORE_H */ > > What is this comment at the end of the file for? Perhaps this should be moved to a later patch. Ack for every other comment you gave. -- viresh