From: "Jaya Kumar" <jayakumar.acpi@gmail.com>
To: "Matthew Garrett" <mjg59@srcf.ucam.org>
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.15.3 1/1] ACPI: Atlas ACPI driver
Date: Mon, 20 Feb 2006 18:49:54 +0800 [thread overview]
Message-ID: <756b48450602200249k1b79b108u42bfef68e1e9dba8@mail.gmail.com> (raw)
In-Reply-To: <20060220102639.GA4342@srcf.ucam.org>
On 2/20/06, Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> On Mon, Feb 20, 2006 at 10:13:53AM +0800, jayakumar.acpi@gmail.com wrote:
>
> > + /* setup proc entry to set and get lcd brightness */
> > + proc = create_proc_read_entry("lcd", S_IFREG | S_IRUGO | S_IWUSR,
> > + atlas_proc_dir, atlas_read_proc_lcd, atlas_dev);
>
> For basic sanity, could this please be a standard backlight driver
> rather than sticking yet another backlight control under yet another
> directory in /proc? It makes userspace much, much easier.
I'm not sure how standard that is. For example, I looked at the asus
and toshiba drivers. These ACPI board drivers use
/proc/acpi/somedevice/lcd. For example,
asus_acpi.c
894 asus_proc_add(PROC_LCD, &proc_write_lcd,
&proc_read_lcd, mode,
895 device);
toshiba_acpi.c
472 {"lcd", read_lcd, write_lcd},
So, that's why I chose to do the same in my implementation. I'd have
much rather used a generic sysfs entry but that's not what any ACPI
drivers appear to do. Further, I see that Patrick Mochel is rewriting
the whole acpi driver model (and incorporating sysfs) anyway so I
figured I'd go with the flow of existing drivers. Perhaps someone
could clarify what the consensus is. I'd be happy to make any desired
adjustments.
> drivers/video/backlight/corgi_bl.c is an example, but also see my posts
> to acpi-devel with patches that add it to existing acpi drivers.
I'll go take a look at that. I didn't look for an acpi driver outside
of the drivers/acpi directory. But if that's the consensus, shouldn't
someone also mod the toshiba and asus drivers?
>
> > + return atlas_acpi_button_add(device);
>
> What buttons does the hardware have? Would it make more sense for it to
Standard wallmount stuff. There's 8 buttons on the one I'm using for
testing. Vol up/down. Brightness up/down. Then several buttons for
miscellaneous usage by people who customize the chassis. Most apps for
this type of board are custom written and tend to just select on
/proc/acpi/event.
> be an input driver rather than (or as well as) just dropping stuff in
> acpi/events?
I would have loved to make it an input driver. But looking at the
mailing list archives, that seems to be a bone of contention and hence
I chose to go with the flow. I'll be happy to switch it over to an
input driver if there is consensus around that. Please do let me know.
Thanks,
jayakumar
>
> --
> Matthew Garrett | mjg59@srcf.ucam.org
>
next prev parent reply other threads:[~2006-02-20 10:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 2:13 jayakumar.acpi
2006-02-20 10:26 ` Matthew Garrett
2006-02-20 10:49 ` Jaya Kumar [this message]
2006-02-20 11:01 ` Matthew Garrett
2006-02-20 11:25 ` Jaya Kumar
2006-02-20 11:28 ` Matthew Garrett
2006-02-20 8:26 Yu, Luming
2006-02-20 8:37 ` Jaya Kumar
[not found] <AcY1+QTZumb9d6e3RHms9ocp4LswwgAtmORQ>
2006-02-21 6:34 ` Yu, Luming
2006-03-03 8:16 ` Jaya Kumar
2006-03-06 13:50 Yu, Luming
2006-03-07 1:50 ` Jaya Kumar
2006-03-07 8:52 Yu, Luming
2006-03-07 16:09 ` Jaya Kumar
2006-03-08 6:17 Yu, Luming
2006-03-08 7:11 ` Jaya Kumar
2006-03-08 7:44 Yu, Luming
2006-03-08 8:53 ` Jaya Kumar
2006-03-13 6:38 ` Jaya Kumar
2006-03-13 13:16 Yu, Luming
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=756b48450602200249k1b79b108u42bfef68e1e9dba8@mail.gmail.com \
--to=jayakumar.acpi@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg59@srcf.ucam.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
all inboxes | Powered by JetHome®