From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Frank Rowand <frowand.list@gmail.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Michael Turquette <mturquette@baylibre.com>,
Rob Herring <robh+dt@kernel.org>, Stephen Boyd <sboyd@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
linux-renesas-soc@vger.kernel.org,
Aymeric Aillet <aymeric.aillet@iot.bzh>,
Yusuke Goda <yusuke.goda.sx@renesas.com>
Subject: [PATCH v5 resend 0/4] drivers: clk: renesas: ignore all clocks which are assigned to non-Linux system
Date: Wed, 10 Jan 2024 01:14:13 +0000 [thread overview]
Message-ID: <87edeqgfbu.wl-kuninori.morimoto.gx@renesas.com> (raw)
Hi Rob, Geert
Cc Aymeric, Goda-san
This is v5 resend of ignoring non Linux system assinged device.
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
v5 resend
- add Acked-by from Rob
v4 -> v5
- typo fix s/assinged/assigned/
- separate error check on cpg_mssr_reserved_init()
- care it.node on cpg_mssr_reserved_init() error
- care of_clk_del_provider()
- rename label "reserve_err" -> "reserve_exit"
v3 -> v4
- add Reviewed-by from Geert
- Tidyup many English
- use of_for_each_phandle() instead of while(!of_parse_phandle_with_args())
- move cpg_mssr_reserved_init() into cpg_mssr_common_init()
v2 -> v3
- "__of_get_next_status_child()" -> "of_get_next_status_child()"
- add Reviewed-by from Rob
v1 -> v2
- remove "default_ret" from __of_device_is_status()
- add new parameter explanation on cpg_mssr_priv
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: ignore all clocks which are assigned to non-Linux system
drivers/clk/renesas/renesas-cpg-mssr.c | 111 +++++++++++++++++++++++--
drivers/of/base.c | 111 ++++++++++++++++++-------
include/linux/of.h | 11 +++
3 files changed, 196 insertions(+), 37 deletions(-)
--
2.25.1
next reply other threads:[~2024-01-10 1:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 1:14 Kuninori Morimoto [this message]
2024-01-10 1:14 ` [PATCH v5 resend 1/4] of: add __of_device_is_status() and makes more generic status check Kuninori Morimoto
2024-01-10 1:14 ` [PATCH v5 resend 2/4] of: add of_get_next_status_child() and makes more generic of_get_next Kuninori Morimoto
2024-01-10 1:14 ` [PATCH v5 resend 3/4] of: add for_each_reserved_child_of_node() Kuninori Morimoto
2024-01-10 1:14 ` [PATCH v5 resend 4/4] drivers: clk: renesas: ignore all clocks which are assigned to non-Linux system Kuninori Morimoto
2024-01-12 14:13 ` Geert Uytterhoeven
2024-01-12 14:21 ` [PATCH v5 resend 0/4] " Geert Uytterhoeven
2024-01-22 16:04 ` Rob Herring
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=87edeqgfbu.wl-kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=aymeric.aillet@iot.bzh \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=geert+renesas@glider.be \
--cc=linux-clk@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=yusuke.goda.sx@renesas.com \
/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