All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
	Len Brown <lenb@kernel.org>,
	ibm-acpi-devel@lists.sourceforge.net, linux-acpi@vger.kernel.org
Subject: Re: [PATCH 3/4] ACPI: thinkpad-acpi: disable backlight handler if ACPI generic could do it
Date: Tue, 09 Oct 2007 16:11:27 +0200	[thread overview]
Message-ID: <1191939088.9847.274.camel@queen.suse.de> (raw)
In-Reply-To: <20071009134711.GA444@khazad-dum.debian.net>

On Tue, 2007-10-09 at 10:47 -0300, Henrique de Moraes Holschuh wrote:
> On Tue, 09 Oct 2007, Thomas Renninger wrote:
> > > Error prone how?  Please expand, because right now I am not inclined to
> > > remove that variable.  It is optional, and disabled by default.  Distros are
> > > not going to enable it unless they have a damn good reason to, and it is not
> > > even something that one can enable at runtime.
> > > 
> > > Should I make the help text stronger against enabling the option? Is it not
> > > clear enough?
> >
> > No, all the _BCL poking should vanish.
> 
> I need to *somehow* find out if the thinkpad supports the video extensions.

Maybe in scan.c:acpi_video_bus_match() we could add a quirk like:

if (ThinkPad){
 if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_BCM", &h_dummy1)) &&
 ACPI_SUCCESS(acpi_get_handle(device->handle, "_BCL", &h_dummy2))) &&
 return 0;
else
 return -ENODEV;

This would make the video module only load on thinkpads if the
brightness functions are implemented.
Then the double register could work with this one check, or you are
right, it needs to be checked again in the thinkpad module explicitly.

   Thomas


  reply	other threads:[~2007-10-09 14:11 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08 13:12 [GIT PATCH v2] thinkpad-acpi changes for the merge window (part 2) Henrique de Moraes Holschuh
2007-10-08 13:12 ` [PATCH 2/4] ACPI: thinkpad-acpi: support 16 levels of brightness (v2) Henrique de Moraes Holschuh
2007-10-09  5:16   ` [ibm-acpi-devel] " Thomas Renninger
     [not found]     ` <1191907013.9847.69.camel-X8wR35IVlAxolqkO4TVVkw@public.gmane.org>
2007-10-09 11:45       ` Henrique de Moraes Holschuh
     [not found] ` <1191849179-24087-1-git-send-email-hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org>
2007-10-08 13:12   ` [PATCH 1/4] ACPI: thinkpad-acpi: skip blanks before the data when parsing sysfs Henrique de Moraes Holschuh
2007-10-08 13:12   ` [PATCH 3/4] ACPI: thinkpad-acpi: disable backlight handler if ACPI generic could do it Henrique de Moraes Holschuh
2007-10-09  6:21     ` Thomas Renninger
     [not found]       ` <1191910875.9847.79.camel-X8wR35IVlAxolqkO4TVVkw@public.gmane.org>
2007-10-09  7:59         ` Matthew Garrett
2007-10-09  8:25           ` Thomas Renninger
2007-10-09  8:33             ` Matthew Garrett
2007-10-09  9:46               ` Thomas Renninger
2007-10-09 10:04                 ` Matthew Garrett
2007-10-09 11:14                   ` Henrique de Moraes Holschuh
2007-10-09 13:29                     ` Thomas Renninger
2007-10-09 13:34                       ` Matthew Garrett
2007-10-09 13:47                         ` Thomas Renninger
2007-10-09 13:49                           ` Matthew Garrett
2007-10-09 13:47                       ` Henrique de Moraes Holschuh
2007-10-09 14:11                         ` Thomas Renninger [this message]
2007-10-09 14:29                           ` Henrique de Moraes Holschuh
2007-10-09 20:53                             ` How to distinguish between general ACPI video driver module and brightness/display providing vendor specific ACPI modules Thomas Renninger
2007-10-10 11:44                               ` [ibm-acpi-devel] " Thomas Renninger
2007-10-10 20:46                                 ` Henrique de Moraes Holschuh
2007-10-10 21:23                                   ` Henrique de Moraes Holschuh
2007-10-08 13:12   ` [PATCH 4/4] ACPI: thinkpad-acpi: bump up version to 0.17 Henrique de Moraes Holschuh

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=1191939088.9847.274.camel@queen.suse.de \
    --to=trenn@suse.de \
    --cc=hmh@hmh.eng.br \
    --cc=ibm-acpi-devel@lists.sourceforge.net \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@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 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.