All of lore.kernel.org
 help / color / mirror / Atom feed
From: ulf.hansson@stericsson.com (Ulf Hansson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/3] clk: Provide option to unprepare unused clocks at late init
Date: Wed, 19 Dec 2012 00:16:20 +0100	[thread overview]
Message-ID: <1355872583-20928-1-git-send-email-ulf.hansson@stericsson.com> (raw)

From: Ulf Hansson <ulf.hansson@linaro.org>

The disable_unused sequence executed at late init, is already handling the
fast unused ungated clocks to be gated. This patchset extends this sequence to
include the slow unused prepared clocks to be unprepared.

The default behavior will not change in this patchset. To unprepare unused
clocks during the disable_unused sequence, the clk_hw needs to implement
the new optional callback, is_prepared.

The motivation for this patchset is to save power. Clocks that is from
bootloaders prepared|enabled, but not used should be unprepared|disabled.

Ulf Hansson (3):
  clk: Introduce optional is_prepared callback
  clk: Unprepare the unused prepared slow clocks at late init
  clk: Introduce optional unprepare_unused callback

 drivers/clk/clk.c            |   53 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/clk-provider.h |   11 +++++++++
 2 files changed, 64 insertions(+)

-- 
1.7.10

             reply	other threads:[~2012-12-18 23:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 23:16 Ulf Hansson [this message]
2012-12-18 23:16 ` [PATCH 1/3] clk: Introduce optional is_prepared callback Ulf Hansson
2012-12-18 23:16 ` [PATCH 2/3] clk: Unprepare the unused prepared slow clocks at late init Ulf Hansson
2012-12-18 23:16 ` [PATCH 3/3] clk: Introduce optional unprepare_unused callback Ulf Hansson
2012-12-20 19:17 ` [PATCH 0/3] clk: Provide option to unprepare unused clocks at late init Linus Walleij
2013-01-16  8:54   ` Ulf Hansson

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=1355872583-20928-1-git-send-email-ulf.hansson@stericsson.com \
    --to=ulf.hansson@stericsson.com \
    --cc=linux-arm-kernel@lists.infradead.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.