[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120919030116.GN8832@opensource.wolfsonmicro.com>
Date: Tue, 18 Sep 2012 23:01:16 -0400
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Stephen Warren <swarren@...dotorg.org>
Cc: Alex Courbot <acourbot@...dia.com>,
"linux-fbdev@...r.kernel.org" <linux-fbdev@...r.kernel.org>,
Stephen Warren <swarren@...dia.com>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
Leela Krishna Amudala <l.krishna@...sung.com>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Rob Herring <rob.herring@...xeda.com>,
Anton Vorontsov <cbou@...l.ru>,
Tomi Valkeinen <tomi.valkeinen@...com>,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>,
David Woodhouse <dwmw2@...radead.org>,
"devicetree-discuss@...ts.ozlabs.org"
<devicetree-discuss@...ts.ozlabs.org>
Subject: Re: [PATCH v6 0/4] Runtime Interpreted Power Sequences
On Thu, Sep 13, 2012 at 09:24:53AM -0600, Stephen Warren wrote:
> On 09/13/2012 01:29 AM, Mark Brown wrote:
> > The driver knows the power sequence. Having to type the same sequence
> > into the DT or platform data for each board using the device wouuld be
> > retarded so we need the drivers to be able to give the sequence to the
> > library if they're going to be able to reuse it (which is a lot of what
> > Tomi is talking about).
> I believe that's trivial to implement. The relevant function is:
Right, that's what I'm saying - the code is mostly there now.
> It's up to the driver whether pseq comes from platform data or is
> hard-coded into the driver (or not provided at all, for the DT case).
> So, the only change needed to convert a "hard-coded" driver to this API
> is to convert the current custom data structure (or code) that describes
> the sequence into a struct platform_power_seq_set.
The framework could still help by providing ways to avoid having to copy
the structure and fill in the blanks for GPIO numbers (and anything else
that is numbered rather than named) by hand.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists