All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v1 0/5] clk: support clocks which requires parent clock on during operation
@ 2015-04-15 14:26 ` Dong Aisheng
  0 siblings, 0 replies; 46+ messages in thread
From: Dong Aisheng @ 2015-04-15 14:26 UTC (permalink / raw)
  To: linux-clk
  Cc: linux-kernel, sboyd, mturquette, shawn.guo, b29396,
	linux-arm-kernel, Ranjani.Vaidyanathan, b20596, r64343, b20788

This patch series adds support in clock framework for clocks which operations
requires its parent clock is on.

Such clock type is initially met on Freescale i.MX7D platform that all clocks
operations, including enable/disable, rate change and re-parent, requires its
parent clock on. No sure if any other SoC has the similar clock type.

Current clock core can not support such type of clock well.

This patch introduce a new flag CLK_SET_PARENT_ON to handle this special case
in clock core that enable its parent clock firstly for each operation and disable
it later after operation complete.

The most special case is for set_parent() operation which requires both parent,
old one and new one, to be enabled at the same time during the operation.

Patch 1~3 are minor cleanup & fixes.
Patch 4 add CLK_SET_PARENT_ON flags in clock core to support such type clocks
Patch 5 show the need of introducing clk_core_enable_lock and
	clk_core_disable_lock to easily use and reduce duplicated code.
	It can be merged into patch 4 if required.

The patch series is based on for-next branch of Michael's git:
git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git

Dong Aisheng (5):
  clk: change clk_core name of __clk_set_parent_after
  clk: add missing lock when call clk_core_enable in clk_set_parent
  clk: remove unneeded __clk_enable and __clk_disable
  clk: core: add CLK_SET_PARENT_ON flags to support clocks require
    parent on
  clk: introduce clk_core_enable_lock and clk_core_disable_lock
    functions

 drivers/clk/clk.c            | 112 ++++++++++++++++++++++++++++++++++---------
 include/linux/clk-provider.h |   5 ++
 2 files changed, 94 insertions(+), 23 deletions(-)

-- 
1.9.1


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

end of thread, other threads:[~2015-05-13  9:34 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15 14:26 [PATCH RFC v1 0/5] clk: support clocks which requires parent clock on during operation Dong Aisheng
2015-04-15 14:26 ` Dong Aisheng
2015-04-15 14:26 ` [PATCH RFC v1 1/5] clk: change clk_core name of __clk_set_parent_after Dong Aisheng
2015-04-15 14:26   ` Dong Aisheng
2015-04-30 19:06   ` Stephen Boyd
2015-04-30 19:06     ` Stephen Boyd
2015-05-04  8:15     ` Dong Aisheng
2015-05-04  8:15       ` Dong Aisheng
2015-04-15 14:26 ` [PATCH RFC v1 2/5] clk: add missing lock when call clk_core_enable in clk_set_parent Dong Aisheng
2015-04-15 14:26   ` Dong Aisheng
2015-04-30 19:07   ` Stephen Boyd
2015-04-30 19:07     ` Stephen Boyd
2015-05-04  8:35     ` Dong Aisheng
2015-05-04  8:35       ` Dong Aisheng
2015-05-07  0:01       ` Stephen Boyd
2015-05-07  0:01         ` Stephen Boyd
2015-05-13  9:21         ` Dong Aisheng
2015-05-13  9:21           ` Dong Aisheng
2015-04-15 14:26 ` [PATCH RFC v1 3/5] clk: remove unneeded __clk_enable and __clk_disable Dong Aisheng
2015-04-15 14:26   ` Dong Aisheng
2015-04-30 19:09   ` Stephen Boyd
2015-04-30 19:09     ` Stephen Boyd
2015-04-30 22:05     ` Stephen Boyd
2015-04-30 22:05       ` Stephen Boyd
2015-05-04  8:16       ` Dong Aisheng
2015-05-04  8:16         ` Dong Aisheng
2015-04-15 14:26 ` [PATCH RFC v1 4/5] clk: core: add CLK_SET_PARENT_ON flags to support clocks require parent on Dong Aisheng
2015-04-15 14:26   ` Dong Aisheng
2015-05-01  1:09   ` Stephen Boyd
2015-05-01  1:09     ` Stephen Boyd
2015-05-04 10:36     ` Dong Aisheng
2015-05-04 10:36       ` Dong Aisheng
2015-05-06 23:34       ` Stephen Boyd
2015-05-06 23:34         ` Stephen Boyd
2015-05-13  9:20         ` Dong Aisheng
2015-05-13  9:20           ` Dong Aisheng
2015-04-15 14:26 ` [PATCH RFC v1 5/5] clk: introduce clk_core_enable_lock and clk_core_disable_lock functions Dong Aisheng
2015-04-15 14:26   ` Dong Aisheng
2015-05-01  1:10   ` Stephen Boyd
2015-05-01  1:10     ` Stephen Boyd
2015-05-04 10:38     ` Dong Aisheng
2015-05-04 10:38       ` Dong Aisheng
2015-04-22  6:12 ` [PATCH RFC v1 0/5] clk: support clocks which requires parent clock on during operation Dong Aisheng
2015-04-22  6:12   ` Dong Aisheng
2015-04-30  2:37   ` Dong Aisheng
2015-04-30  2:37     ` Dong Aisheng

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.