public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali.rohar@gmail.com>
To: Darren Hart <dvhart@infradead.org>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
	platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org, libsmbios-devel@lists.us.dell.com,
	Srinivas_G_Gowda@dell.com, Michael_E_Brown@dell.com,
	Gabriele Mazzotta <gabriele.mzt@gmail.com>
Subject: Re: [PATCH v2] platform: x86: dell-laptop: Add support for keyboard backlight
Date: Fri, 5 Dec 2014 03:03:49 +0100	[thread overview]
Message-ID: <201412050303.49206@pali> (raw)
In-Reply-To: <20141203084319.GA52608@vmdeb7>

[-- Attachment #1: Type: Text/Plain, Size: 2159 bytes --]

On Wednesday 03 December 2014 09:43:21 Darren Hart wrote:
> On Sun, Nov 23, 2014 at 03:50:45PM +0100, Pali Rohár wrote:
> > This patch adds support for configuring keyboard backlight
> > settings on supported Dell laptops. It exports kernel leds
> > interface and uses Dell SMBIOS tokens or keyboard class
> > interface.
> > 
> > With this patch it is possible to set:
> > * keyboard backlight level
> > * timeout after which will be backlight automatically turned
> > off * input activity triggers (keyboard, touchpad, mouse)
> > which enable backlight * ambient light settings
> > 
> > Settings are exported via sysfs:
> > /sys/class/leds/dell::kbd_backlight/
> > 
> > Code is based on newly released documentation by Dell in
> > libsmbios project.
> 
> Hi Pali,
> 
> I would really like to see this broken up. Possibly adding
> levels and timeouts as separate patches for example. It is
> quite difficult to review this all at once in a reasonable
> amount of time.
> 

It is really hard to split this patch into more parts which every 
one will compile and ideally also work. In my opinion every 
single git commit should be possible to compile and should also 
work (it helps also other developers to use git bisect).

And because we need to pass all (previous unchanged) values in 
smbios call we need to parse all of them.

I understand that it could be hard to review long patch, but 
there are more parts which interacts and do not work without 
other. Also some of settings (e.g keyboard backlight level) could 
be changed via different ways (and on some machines only one is 
working) and also that smbios keyboard interface has complicated 
logic...

> During this review I caught a few more CodingStyle violations,
> and raised some questions about the timeout and levels
> mechanisms.
> 

I will fix style problems in next v3 patch.
 
What to do with Dan Carpenter patch which fixing kbd_timeout 
handling? Should I integrate it into v3? It does not apply on top 
of next v3 patch, because there will be new comment about quirk 
plus style fixes...

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2014-12-05  2:03 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-14 12:23 [PATCH] platform: x86: dell-laptop: Add support for keyboard backlight Pali Rohár
2014-11-19 18:34 ` Darren Hart
2014-11-19 19:23   ` Matthew Garrett
2014-11-19 19:51     ` Pali Rohár
2014-11-19 19:12       ` Darren Hart
2014-11-19 20:41   ` Pali Rohár
2014-11-21 20:39     ` Darren Hart
2014-11-22 18:46       ` Pali Rohár
2014-11-21 22:09         ` Darren Hart
2014-11-23 14:48           ` Pali Rohár
2014-11-23 14:50 ` [PATCH v2] " Pali Rohár
2014-11-25 23:01   ` Darren Hart
2014-12-01 17:35   ` Pali Rohár
2014-12-03  8:43   ` Darren Hart
2014-12-04  8:50     ` Gabriele Mazzotta
2014-12-03 11:51       ` Darren Hart
2014-12-05  1:53         ` Pali Rohár
2014-12-04 10:16     ` Pali Rohár
2014-12-03 12:35       ` Darren Hart
2014-12-05  2:03     ` Pali Rohár [this message]
2014-12-03 12:49       ` Darren Hart
2014-12-05 11:53 ` [PATCH v3] " Pali Rohár
2014-12-03 18:00   ` Darren Hart

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=201412050303.49206@pali \
    --to=pali.rohar@gmail.com \
    --cc=Michael_E_Brown@dell.com \
    --cc=Srinivas_G_Gowda@dell.com \
    --cc=dvhart@infradead.org \
    --cc=gabriele.mzt@gmail.com \
    --cc=libsmbios-devel@lists.us.dell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=platform-driver-x86@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox