All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
To: Renato Caldas <seventhguardian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: Put acpi/backlight code into kernel
Date: Sat, 19 Sep 2009 20:54:00 +0100	[thread overview]
Message-ID: <20090919195400.GA4320@srcf.ucam.org> (raw)
In-Reply-To: <1caff7430909140300o775276ch890ff41b75181e50-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Mon, Sep 14, 2009 at 11:00:59AM +0100, Renato Caldas wrote:

> This kind of code doesn't belong in the nouveau driver, as you
> probably already know.

Sure it does. It's common for nvidia-based machines to use the GPU's 
built-in backlight control, and when that's the case the appropriate 
place for the control code is in the driver that touches the rest of 
those registers - nouveau, in this case.

> But there are things called "platform drivers" that support all those
> non-standard features you may find on laptops, like radio switches,
> leds, ... and backlight. There is one such driver for my Asus laptop,
> which is called "asus-laptop".

When there's a platform interface, a platform driver is indeed the 
correct answer. But in some cases (nvidia-based Sonys, for instance) 
there's no platform interface to use.

-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org

  parent reply	other threads:[~2009-09-19 19:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-22 18:34 Put acpi/backlight code into kernel schmirrwurst-gM/Ye1E23mwN+BqQ9rBEUg
     [not found] ` <200908222034.28782.schmirrwurst-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2009-09-04 20:01   ` Matthew Garrett
     [not found] ` <200909131945.16860.schmirrwurst@googlemail.com>
     [not found]   ` <20090913175159.GA26939@srcf.ucam.org>
     [not found]     ` <20090913175159.GA26939-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2009-09-13 18:09       ` schmirrwurst-gM/Ye1E23mwN+BqQ9rBEUg
     [not found]         ` <200909132009.37494.schmirrwurst-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2009-09-13 22:13           ` Matthew Garrett
     [not found]             ` <20090913221350.GA31175-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2009-09-14  6:36               ` schmirrwurst-gM/Ye1E23mwN+BqQ9rBEUg
     [not found]                 ` <200909140836.18074.schmirrwurst-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2009-09-14  9:02                   ` Maarten Maathuis
     [not found]                     ` <6d4bc9fc0909140202q60a587c3pb22e3c2eb2ff2ff2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-14 10:00                       ` Renato Caldas
     [not found]                         ` <1caff7430909140300o775276ch890ff41b75181e50-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-14 12:40                           ` schmirrwurst-gM/Ye1E23mwN+BqQ9rBEUg
     [not found]                             ` <200909141440.32260.schmirrwurst-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2009-09-14 13:09                               ` Renato Caldas
2009-09-19 19:54                           ` Matthew Garrett [this message]
     [not found]                             ` <20090919195400.GA4320-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2009-09-19 21:36                               ` Renato Caldas
     [not found]                                 ` <1caff7430909191436k71708d4cs77423417353a47-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-19 22:28                                   ` Matthew Garrett

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=20090919195400.GA4320@srcf.ucam.org \
    --to=mjg59-1xo5oi07kqx4cg9nei1l7q@public.gmane.org \
    --cc=Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=seventhguardian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.