From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753810Ab2IMIKW (ORCPT ); Thu, 13 Sep 2012 04:10:22 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:41967 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752775Ab2IMIKF (ORCPT ); Thu, 13 Sep 2012 04:10:05 -0400 Date: Thu, 13 Sep 2012 16:09:55 +0800 From: Mark Brown To: Alexandre Courbot Cc: Stephen Warren , Thierry Reding , Simon Glass , Grant Likely , Rob Herring , Anton Vorontsov , David Woodhouse , Arnd Bergmann , Leela Krishna Amudala , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-pm@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v6 1/4] Runtime Interpreted Power Sequences Message-ID: <20120913080953.GC20959@opensource.wolfsonmicro.com> References: <1347443867-18868-1-git-send-email-acourbot@nvidia.com> <1347443867-18868-2-git-send-email-acourbot@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1347443867-18868-2-git-send-email-acourbot@nvidia.com> X-Cookie: Give him an evasive answer. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 12, 2012 at 06:57:44PM +0900, Alexandre Courbot wrote: > Some device drivers (panel backlights especially) need to follow precise > sequences for powering on and off, involving gpios, regulators, PWMs > with a precise powering order and delays to respect between each steps. > These sequences are board-specific, and do not belong to a particular > driver - therefore they have been performed by board-specific hook > functions to far. It does make me a little sad that the DT bindings need to specify the number of steps but otherwise this looks good (modulo the minor comments Stephen had as well): Reviewed-by: Mark Brown I think regardless of the current discussion about some of the applications (like pwm-backlight) there are going to be cases where this is useful even if it ends up being more as library code for drivers than as something that users work with directly.