devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] drivers: clk: renesas: enable all clocks which is assinged to non Linux system
@ 2023-11-13 23:59 Kuninori Morimoto
  2023-11-14  0:00 ` [PATCH 1/4] of: add __of_device_is_status() and makes more generic status check Kuninori Morimoto
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Kuninori Morimoto @ 2023-11-13 23:59 UTC (permalink / raw)
  To: Frank Rowand, Geert Uytterhoeven, Michael Turquette, Rob Herring,
	Stephen Boyd
  Cc: Rob Herring, devicetree, linux-clk, linux-renesas-soc,
	Aymeric Aillet, Yusuke Goda


Hi Rob, Geert
Cc Aymeric, Goda-san

Some board might use Linux and another OS in the same time. In such
case, current Linux will stop necessary module clock when booting
which is not used on Linux side, but is used on another OS side.

To avoid such situation, this patch-set try to find status = "reserved"
devices, and add CLK_IGNORE_UNUSED flag to its clock.

Table 2.4: Values for status property
https://github.com/devicetree-org/devicetree-specification/releases/download/v0.4/devicetree-specification-v0.4.pdf

"reserved"
	Indicates that the device is operational, but should not be
	used. Typically this is used for devices that are controlled
	by another software component, such as platform firmware.


[1/4] - [3/4] : expand existing function for "reserved"
[4/4]         : adjust to "reserved" device on Renesas CPG

Kuninori Morimoto (4):
  of: add __of_device_is_status() and makes more generic status check
  of: add __of_get_next_status_child() and makes more generic of_get_next
  of: add for_each_reserved_child_of_node()
  drivers: clk: renesas: enable all clocks which is assinged to non Linux system

 drivers/clk/renesas/renesas-cpg-mssr.c | 116 +++++++++++++++++++++++--
 drivers/of/base.c                      | 111 ++++++++++++++++-------
 include/linux/of.h                     |  11 +++
 3 files changed, 197 insertions(+), 41 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-12-04  0:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-13 23:59 [PATCH 0/4] drivers: clk: renesas: enable all clocks which is assinged to non Linux system Kuninori Morimoto
2023-11-14  0:00 ` [PATCH 1/4] of: add __of_device_is_status() and makes more generic status check Kuninori Morimoto
2023-11-16 19:17   ` Rob Herring
2023-11-14  0:00 ` [PATCH 2/4] of: add __of_get_next_status_child() and makes more generic of_get_next Kuninori Morimoto
2023-11-14  0:01 ` [PATCH 3/4] of: add for_each_reserved_child_of_node() Kuninori Morimoto
2023-11-14  0:01 ` [PATCH 4/4] drivers: clk: renesas: enable all clocks which is assinged to non Linux system Kuninori Morimoto
2023-11-14 13:10   ` kernel test robot
2023-11-16  1:04     ` Kuninori Morimoto
2023-11-16 19:23   ` Rob Herring
2023-11-16 21:08     ` Geert Uytterhoeven
2023-11-27 21:32       ` Stephen Boyd
2023-11-27 23:48         ` Kuninori Morimoto
2023-12-01 22:39           ` Stephen Boyd
2023-12-04  0:26             ` Kuninori Morimoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).