public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/4] clk: Provide option to unprepare unused clocks at late init
@ 2013-01-24 16:45 Ulf Hansson
  2013-01-24 16:45 ` [PATCH 1/4] clk: Introduce optional is_prepared callback Ulf Hansson
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Ulf Hansson @ 2013-01-24 16:45 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Patch 4 is specific for ux500, which implements the is_prepared callback
for it's PRMCU clocks.

Note that patch 1-3 has been sent earlier, but since a proof of concept
patch could be useful, as patch 4 is, the hole patchset is resent.

Ulf Hansson (4):
  clk: Introduce optional is_prepared callback
  clk: Unprepare the unused prepared slow clocks at late init
  clk: Introduce optional unprepare_unused callback
  clk: ux500: Support is_prepared callback for clk-prcmu

 drivers/clk/clk.c             |   53 ++++++++++++++++
 drivers/clk/ux500/clk-prcmu.c |  134 ++++++++++++++++++++++++-----------------
 include/linux/clk-provider.h  |   11 ++++
 3 files changed, 144 insertions(+), 54 deletions(-)

-- 
1.7.10

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-02-08  8:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24 16:45 [PATCH 0/4] clk: Provide option to unprepare unused clocks at late init Ulf Hansson
2013-01-24 16:45 ` [PATCH 1/4] clk: Introduce optional is_prepared callback Ulf Hansson
2013-01-24 18:12   ` Mike Turquette
2013-01-24 20:28     ` Ulf Hansson
2013-01-24 16:45 ` [PATCH 2/4] clk: Unprepare the unused prepared slow clocks at late init Ulf Hansson
2013-01-24 16:45 ` [PATCH 3/4] clk: Introduce optional unprepare_unused callback Ulf Hansson
2013-01-24 16:45 ` [PATCH 4/4] clk: ux500: Support is_prepared callback for clk-prcmu Ulf Hansson
2013-01-24 18:49 ` [PATCH 0/4] clk: Provide option to unprepare unused clocks at late init Mike Turquette
2013-01-24 20:41   ` Ulf Hansson
2013-02-08  8:33     ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox