From: Lennart Poettering <mzxreary@0pointer.de>
To: "Brown, Len" <len.brown@intel.com>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH 2/2] acpi,backlight: MSI S270 laptop support - driver
Date: Thu, 10 Aug 2006 18:48:40 +0200 [thread overview]
Message-ID: <20060810164839.GA29324@tango.0pointer.de> (raw)
In-Reply-To: <CFF307C98FEABE47A452B27C06B85BB60133DB99@hdsmsx411.amr.corp.intel.com>
On Thu, 10.08.06 12:15, Brown, Len (len.brown@intel.com) wrote:
Len,
> >drivers/video/backlight/
> > It doesn't just do backlight control.
>
> Perhaps the backlight part should live there.
Mhmm, that would mean I'd had to split up the driver. That would mean
duplicate code to a certain degree and two separate mini drivers with
very connected features.
> >drivers/misc/
> > Seems to be the last resort for everything that doesn't fit it
> > otherwise.
> >
> >Unless anyone has a better idea I will move it to drivers/misc/, then.
>
> Yeah, there is probably a better place than misc.
Hmm. As you might have noticed I already posted an updated driver a
few minutes ago which resides in drivers/misc. Is there any need to
move it once again?
> >I cannot map the "automatic brightness control" feature to the
> >backlight class driver, that's why I duplicated the brightness stuff
> >in /proc/acpi/s270/.
>
> Better to extend the backlight code so that it can handle the
> special features of this platform than to duplicate brightness
> control in multiple places.
Hmm. Better not. That "automatic brightness control" feature and its
behaviour are very specific to this laptop. I don't see any value in
abstracting that. That would be quite a lot of overdesigning in my
eyes. In fact the driver disables this feature on load by default,
assuming that it was probably loaded to do the control in
software.
> >> wlan and bluetooth indicators/controls need to appear under
> >> generic places under sysfs -- not under platform specific
> >> files under /proc/acpi.
> >
> >What are those "generic" places? I cannot think of any besides a
> >"platform" device.
>
> They should appear as properties under their associated
> devices in /sys/devices tree rather than invening a new place.
My updated driver does this now. The attributes appear in
/sys/devices/platform/s270pf/.
> >Any ideas on that ec_transaction() patch I sent earlier?
>
> I agree 100% that ec.c needs to be whacked. Unfortunately
> there seem to be 3 people doing it at the same time,
> so we'll have to sort that out.
Whoever works on that: please make sure to offer a generic EC access
function similar to my ec_transaction() patch! Thanks!
Is there any timeframe for this EC rework? Is there any chance to get
my patch merged in the meantime? (Hmm, I guess i am little unpatient...)
> ps. Lennart, please understand that I didn't intend to be gruff. I
> figured that by the quality of your work -- which is better than
> most -- that I'd go for an immediate reply, even though I was still
> holding a sharp pointed stick at the end of a 6-hour bug scrub
> marathon.
Oh, that's OK. I value a quick reply quite a lot. Thank you very much
for your quick review!
Thanks,
Lennart
--
Lennart Poettering; lennart [at] poettering [dot] net
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.net/lennart/
next prev parent reply other threads:[~2006-08-10 16:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-10 16:15 [PATCH 2/2] acpi,backlight: MSI S270 laptop support - driver Brown, Len
2006-08-10 16:15 ` Brown, Len
2006-08-10 16:48 ` Lennart Poettering [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-10 9:36 Brown, Len
2006-08-10 9:36 ` Brown, Len
2006-08-10 11:46 ` Lennart Poettering
2006-08-10 1:05 Lennart Poettering
2006-08-15 12:42 ` Thomas Renninger
2006-08-15 13:47 ` Lennart Poettering
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=20060810164839.GA29324@tango.0pointer.de \
--to=mzxreary@0pointer.de \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.