From: Michael Hanselmann <linux-kernel@hansmi.ch>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, johannes@sipsolutions.net,
rpurdie@rpsys.net, linux-kernel@killerfox.forkbomb.ch
Subject: Re: [PATCH] Keyboard backlight driver for Oct 2005 PowerBooks
Date: Mon, 28 Aug 2006 01:07:14 +0200 [thread overview]
Message-ID: <20060827230714.GA12569@hansmi.ch> (raw)
In-Reply-To: <1156718063.8433.358.camel@localhost.localdomain>
On Mon, Aug 28, 2006 at 08:34:23AM +1000, Benjamin Herrenschmidt wrote:
> Why would we need a driver ? Userland can emit PMU commands directly...
Drivers are there to abstract hardware. Userland shouldn't know about
hardware specific commands (PMU commands in this case).
It would make it much simpler for programs to use these devices, because
not each of them has to implement everything needed to locate the device
and control it.
pbbuttonsd supports both the I²C and PMU variant. The code is a mess
there and a generic driver would help to clean it up. And yes, I'm
partly responsible for it, since I supplied the original patch for the
PMU keyboard backlight support in pbbuttonsd.
Maybe controlling the keyboard backlight could be moved to its own
program anyway, because the algorithm used by pbbuttonsd isn't appealing
to all people. But those are just ideas.
Oh, and using the LED class allows users to attach it to some trigger.
Maybe someone wants to use it as the IDE LED. :-)
> At least, if we do a driver, it should provide a common interface to
> both PMU and i2c based LMUs
Yeah, I figured after sending it. You'll hear again from me once I got
my hands on an I²C backlight. Something like the AMS driver would be
nice.
next prev parent reply other threads:[~2006-08-27 23:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-27 12:30 [PATCH] Keyboard backlight driver for Oct 2005 PowerBooks Michael Hanselmann
2006-08-27 22:34 ` Benjamin Herrenschmidt
2006-08-27 23:07 ` Michael Hanselmann [this message]
2006-08-27 23:11 ` Benjamin Herrenschmidt
2006-08-27 23:24 ` Michael Hanselmann
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=20060827230714.GA12569@hansmi.ch \
--to=linux-kernel@hansmi.ch \
--cc=benh@kernel.crashing.org \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@killerfox.forkbomb.ch \
--cc=linuxppc-dev@ozlabs.org \
--cc=rpurdie@rpsys.net \
/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).