From: rpurdie@rpsys.net (Richard Purdie)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/5] leds-gpio: Change blink_set callback to be able to turn off blinking
Date: Wed, 26 May 2010 12:44:10 +0100 [thread overview]
Message-ID: <1274874250.16229.87.camel@rex> (raw)
In-Reply-To: <1274872808.1931.310.camel@pasglop>
On Wed, 2010-05-26 at 21:20 +1000, Benjamin Herrenschmidt wrote:
> On Wed, 2010-05-26 at 12:05 +0100, Richard Purdie wrote:
> > On Sat, 2010-05-22 at 20:54 +1000, Benjamin Herrenschmidt wrote:
> > > The leds-gpio blink_set() callback follows the same prototype as the
> > > main leds subsystem blink_set() one.
> > >
> > > The problem is that to stop blink, normally, a leds driver does it
> > > in the brightness_set() callback when asked to set a new fixed value.
> > >
> > > However, with leds-gpio, the platform has no hook to do so, as this
> > > later callback results in a standard GPIO manipulation.
> > >
> > > This changes the leds-gpio specific callback to take a new argument
> > > that indicates whether the LED should be blinking or not and in what
> > > state it should be set if not. We also update the dns323 platform
> > > which seems to be the only user of this so far.
> > >
> > > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > > CC: Richard Purdie <rpurdie@rpsys.net>
> > > CC: Grant Likely <grant.likely@secretlab.ca>
> > > ---
> > > arch/arm/mach-orion5x/dns323-setup.c | 23 +++++++++++++----------
> > > drivers/leds/leds-gpio.c | 31 ++++++++++++++++++++++++-------
> > > include/linux/leds.h | 12 ++++++++----
> > > 3 files changed, 45 insertions(+), 21 deletions(-)
> >
> > Queued in the leds tree, thanks.
>
> You may need to fixup the dns323 bit if you apply before my dns323 rev C
> patches ... but I suppose you figured that out already ;-) It should be
> minor.
Yes, I noticed just after I hit send and applied. I'd rather get the
core change in sooner than later and the reject doesn't look serious so
I'm assuming you can fix up the missing active_low bit for the new
addition easily enough?
Cheers,
Richard
next prev parent reply other threads:[~2010-05-26 11:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-22 10:54 [PATCH 5/5] leds-gpio: Change blink_set callback to be able to turn off blinking Benjamin Herrenschmidt
2010-05-26 11:05 ` Richard Purdie
2010-05-26 11:20 ` Benjamin Herrenschmidt
2010-05-26 11:44 ` Richard Purdie [this message]
2010-05-26 21:38 ` Benjamin Herrenschmidt
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=1274874250.16229.87.camel@rex \
--to=rpurdie@rpsys.net \
--cc=linux-arm-kernel@lists.infradead.org \
/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).