public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Jonathan Buzzard <jonathan@buzzard.me.uk>
Cc: Charles@schwieters.org, linux-acpi@vger.kernel.org, john@neggie.net
Subject: Re: experimental patch for toshiba_acpi
Date: Wed, 25 Feb 2009 17:28:35 +0000	[thread overview]
Message-ID: <20090225172835.GA7152@srcf.ucam.org> (raw)
In-Reply-To: <1235581978.4770.77.camel@penguin.lifesci.dundee.ac.uk>

On Wed, Feb 25, 2009 at 05:12:58PM +0000, Jonathan Buzzard wrote:

> Surely a consistent abstraction of the HCI interface with a user mode
> program to tickle that interface as necessary is better than adding
> hundreds of lines of code to the kernel, and having to constantly update
> the driver when new models come out?

The same argument encourages us to put rfkill and brightness control 
support in a userland tool, despite the existing kernel interfaces for 
controlling them. We could replace almost every driver in platform/x86 
with a generic driver that allowed arbitrary ACPI methods to be called 
and gave access to EC bits. The reason we haven't done this is because 
that's what the kernel is there for.

> On top of that this is the way it has been done now for over a decade.
> The patch enables modern ACPI laptops to use the existing tools for
> Toshiba laptops, without having to compile your own out of band kernel
> module. It is unlikely that someone is going to write and debug the
> kernel code to move the likes of toshset into kernel space in the first
> place and keep it up to date in the second.

The effort required to maintain toshset is identical to the effort 
required to maintain the kernel-level driver. Porting this functionality 
isn't difficult.

Please don't add an interface that exists purely in order to avoid 
writing a proper kernel driver.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

  reply	other threads:[~2009-02-25 17:28 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-25 14:54 experimental patch for toshiba_acpi Charles
2009-02-25 15:24 ` Matthew Garrett
2009-02-25 16:18   ` Jonathan Buzzard
2009-02-25 16:51     ` Matthew Garrett
2009-02-25 17:12       ` Jonathan Buzzard
2009-02-25 17:28         ` Matthew Garrett [this message]
2009-02-25 17:53           ` Jonathan Buzzard
2009-02-25 17:59             ` Matthew Garrett
2009-02-25 20:18               ` Charles
2009-02-26  0:22               ` Jonathan Buzzard
2009-02-26  8:39                 ` Richard Hughes
2009-02-26 10:34                   ` Jonathan Buzzard
2009-02-26 12:52                     ` Richard Hughes
2009-02-26 13:27                       ` Jonathan Buzzard
2009-02-26 13:59                         ` Richard Hughes
2009-02-26 15:49                           ` Jonathan Buzzard
2009-02-25 17:33         ` Azael Avalos
2009-02-26 13:12       ` John Belmonte
2009-02-26 14:03         ` Richard Hughes
2009-02-26 15:51           ` Jonathan Buzzard
2009-02-26 16:01             ` Matthew Garrett
2009-02-27 16:49             ` Richard Hughes
2009-02-27 17:18               ` Jonathan Buzzard
2009-02-28 15:19               ` Henrique de Moraes Holschuh
2009-03-13  1:17                 ` Len Brown
2009-03-14  0:37                   ` Charles
2009-03-14  7:02                   ` Andrey Borzenkov
2009-03-14 12:05                     ` Matthew Garrett
  -- strict thread matches above, loose matches on Subject: below --
2009-02-27 21:15 Andrey Borzenkov
2009-02-27 21:31 ` Charles
2009-02-28  6:13   ` Andrey Borzenkov
2009-02-28 18:00     ` Charles
2009-03-01  7:00       ` Andrey Borzenkov
2009-03-01 10:31         ` Charles

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=20090225172835.GA7152@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=Charles@schwieters.org \
    --cc=john@neggie.net \
    --cc=jonathan@buzzard.me.uk \
    --cc=linux-acpi@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