From: Alex Courbot <acourbot@nvidia.com>
To: Tony Prisk <linux@prisktech.co.nz>
Cc: Stephen Warren <swarren@nvidia.com>,
Thierry Reding <thierry.reding@avionic-design.de>,
Simon Glass <sjg@chromium.org>,
Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <rob.herring@calxeda.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Anton Vorontsov <cbou@mail.ru>,
David Woodhouse <dwmw2@infradead.org>,
Arnd Bergmann <arnd@arndb.de>,
"linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Leela Krishna Amudala <l.krishna@samsung.com>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH v7 2/3] pwm_backlight: use power sequences
Date: Fri, 19 Oct 2012 09:31:53 +0000 [thread overview]
Message-ID: <2048338.SjS64CMeN7@percival> (raw)
In-Reply-To: <1350638436.3339.2.camel@gitbox>
On Friday 19 October 2012 17:20:36 Tony Prisk wrote:
> On Fri, 2012-10-19 at 18:06 +0900, Alexandre Courbot wrote:
> > +static void pwm_backlight_on(struct backlight_device *bl)
> > +{
> > + struct pwm_bl_data *pb = dev_get_drvdata(&bl->dev);
> > + int ret;
> > +
> > + if (pb->enabled)
> > + return;
> > +
> > + if (pb->power_on_seq) {
> > + ret = power_seq_run(pb->power_on_seq);
> > + if (ret < 0) {
> > + dev_err(&bl->dev, "cannot run power on
> > sequence\n");
> > + return;
> > + }
> > + } else {
> > + /* legacy framework */
> > + pwm_config(pb->pwm, 0, pb->period);
> > + pwm_disable(pb->pwm);
>
> Is this right? pwm_disable() in the backlight_on function?
Now everybody will notice that I never really tested the legacy interface. >_<
Thanks, this was totally wrong indeed.
Alex.
next prev parent reply other threads:[~2012-10-19 9:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-19 9:06 [PATCH v7 0/3] Runtime Interpreter Power Sequences Alexandre Courbot
2012-10-19 9:06 ` [PATCH v7 1/3] Runtime Interpreted " Alexandre Courbot
[not found] ` <1350637589-7405-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-10-19 9:06 ` [PATCH v7 2/3] pwm_backlight: use power sequences Alexandre Courbot
[not found] ` <1350637589-7405-3-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-10-19 9:20 ` Tony Prisk
2012-10-19 9:31 ` Alex Courbot [this message]
2012-10-19 16:00 ` Stephen Warren
2012-10-19 9:06 ` [PATCH v7 3/3] tegra: ventana: add PWM backlight to device tree Alexandre Courbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2048338.SjS64CMeN7@percival \
--to=acourbot@nvidia.com \
--cc=arnd@arndb.de \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cbou@mail.ru \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=dwmw2@infradead.org \
--cc=grant.likely@secretlab.ca \
--cc=l.krishna@samsung.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux@prisktech.co.nz \
--cc=rob.herring@calxeda.com \
--cc=sjg@chromium.org \
--cc=swarren@nvidia.com \
--cc=thierry.reding@avionic-design.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).