mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Tadeusz Gozdek <linux_fan@o2.pl>
Cc: linux-kernel@vger.kernel.org, marcel@holtmann.org
Subject: Re: Fwd: [PATCH] [MMC] fix clock problem in PXA255/270
Date: Tue, 29 Apr 2008 18:22:08 +0200	[thread overview]
Message-ID: <20080429182208.70e1053e@mjolnir.drzeus.cx> (raw)
In-Reply-To: <60c632a5.15d4db9c.4816f8d4.b398b@o2.pl>

On Tue, 29 Apr 2008 12:30:44 +0200
Tadeusz Gozdek <linux_fan@o2.pl> wrote:

> OK probably I didn't understand your policy. I ever thought that the host controller should know, when the clock should be off.

No, it's not because it's not my policy, but because the kernel tries
to avoid handling "policy". :)

It is common to talk about software that implements "policy" or
"mechanism". "mechanism" is simple the act of performing a given, well
defined task (e.g. turn on LED A). "policy" on the other hand is
selecting an action when there are multiple, equally valid actions.
Usually this involves the user, directly or indirectly.

The kernel tries to stay clear of "policy" as it is a complex problem
that is better solved per system, in user space. So what I meant when I
said that this is policy, I was saying that this is a "policy" kind of
decision that needs to be configurable from user space.

> The PXA controller is different and it was the simples (but effective) way to solve this difference.

Different in what regard? Or are you referring to the already present
clock fudging in the driver?

> 
> So, I hope it will be usable for people which has problem with "always on" clock, until you solve it in different way (if you going to do this).
> 

This is a project that has been popping up now and then, but the big
thing that is lacking is someone who is able to actually measure if
there is a power gain from this. I don't want to add a lot of code that
isn't doing any good, so I want hard numbers.

Rgds
-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

  reply	other threads:[~2008-04-29 16:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-28  7:32 Tadeusz Gozdek
2008-04-28 13:28 ` Pierre Ossman
2008-04-29  6:49   ` Tadeusz Gozdek
2008-04-29  9:39     ` Pierre Ossman
2008-04-29 10:30       ` Tadeusz Gozdek
2008-04-29 16:22         ` Pierre Ossman [this message]
2008-04-30  8:43           ` Tadeusz Gozdek

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=20080429182208.70e1053e@mjolnir.drzeus.cx \
    --to=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux_fan@o2.pl \
    --cc=marcel@holtmann.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

all inboxes | Powered by JetHome®