From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755864Ab2IMGkU (ORCPT ); Thu, 13 Sep 2012 02:40:20 -0400 Received: from hqemgate04.nvidia.com ([216.228.121.35]:3862 "EHLO hqemgate04.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721Ab2IMGkR (ORCPT ); Thu, 13 Sep 2012 02:40:17 -0400 X-PGP-Universal: processed; by hqnvupgp05.nvidia.com on Wed, 12 Sep 2012 23:39:25 -0700 From: Alex Courbot To: Mark Brown CC: Tomi Valkeinen , 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 0/4] Runtime Interpreted Power Sequences Date: Thu, 13 Sep 2012 15:42:11 +0900 Message-ID: <4473898.CeAQBgUhKL@percival> Organization: NVIDIA User-Agent: KMail/4.9.1 (Linux/3.5.3-1-ARCH; KDE/4.9.1; x86_64; ; ) In-Reply-To: <20120913062552.GB17869@opensource.wolfsonmicro.com> References: <1347443867-18868-1-git-send-email-acourbot@nvidia.com> <1749811.4qrG1GZfBf@percival> <20120913062552.GB17869@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 13 September 2012 14:25:53 Mark Brown wrote: > On Thu, Sep 13, 2012 at 03:23:06PM +0900, Alex Courbot wrote: > > I understand the logic behind handling powering sequences in the device > > driver, but as we discussed for some classes of devices this might just > > not > > scale. I don't know how many different panels (each with different > > powering > > It would be sensible to make sure that the framework is done in such a > way that drivers can use it - there will be drivers (perhaps not display > ones) that have a known power sequence and which could benefit from the > ability to use library code to implement it based on the user simply > supplying named resources. Not sure I understand what you mean, but things should be working this way already - regulators and PWMs are acquired by name using the standard regulator_get() and pwm_get() functions. GPIOs do not, AFAIK, have a way to be referenced by name so their number is used instead. Alex.