Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH] clk: mediatek: pllfh: Don't log error for missing fhctl node
@ 2024-03-08 20:29 Nícolas F. R. A. Prado
  2024-03-11  8:56 ` AngeloGioacchino Del Regno
  2024-04-11  3:49 ` Stephen Boyd
  0 siblings, 2 replies; 3+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-03-08 20:29 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Matthias Brugger,
	AngeloGioacchino Del Regno, Johnson Wang, Edward-JW Yang,
	Chen-Yu Tsai
  Cc: kernel, linux-clk, linux-kernel, linux-arm-kernel, linux-mediatek,
	Nícolas F. R. A. Prado

Support for fhctl clocks in apmixedsys was introduced at a later point
and to this moment only one mt6795 based platform has a fhctl DT node
present. Therefore the fhctl support in apmixedsys should be seen as
optional and not cause an error when it is missing.

Change the message's log level to warning. The warning level is chosen
so that it will still alert the fact that fhctl support might be
unintentionally missing, but without implying that this is necessarily
an issue.

Even if the FHCTL DT nodes are added to all current platforms moving
forward, since those changes won't be backported, this ensures stable
kernel releases won't have live with this error.

Fixes: d7964de8a8ea ("clk: mediatek: Add new clock driver to handle FHCTL hardware")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
 drivers/clk/mediatek/clk-pllfh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/mediatek/clk-pllfh.c b/drivers/clk/mediatek/clk-pllfh.c
index 3a2b3f90be25..094ec8a26d66 100644
--- a/drivers/clk/mediatek/clk-pllfh.c
+++ b/drivers/clk/mediatek/clk-pllfh.c
@@ -68,7 +68,7 @@ void fhctl_parse_dt(const u8 *compatible_node, struct mtk_pllfh_data *pllfhs,
 
 	node = of_find_compatible_node(NULL, NULL, compatible_node);
 	if (!node) {
-		pr_err("cannot find \"%s\"\n", compatible_node);
+		pr_warn("cannot find \"%s\"\n", compatible_node);
 		return;
 	}
 

---
base-commit: 11afac187274a6177a7ac82997f8691c0f469e41
change-id: 20240308-mtk-fhctl-no-node-error-d0f87b749d7c

Best regards,
-- 
Nícolas F. R. A. Prado <nfraprado@collabora.com>


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

* Re: [PATCH] clk: mediatek: pllfh: Don't log error for missing fhctl node
  2024-03-08 20:29 [PATCH] clk: mediatek: pllfh: Don't log error for missing fhctl node Nícolas F. R. A. Prado
@ 2024-03-11  8:56 ` AngeloGioacchino Del Regno
  2024-04-11  3:49 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-03-11  8:56 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Michael Turquette, Stephen Boyd,
	Matthias Brugger, Johnson Wang, Edward-JW Yang, Chen-Yu Tsai
  Cc: kernel, linux-clk, linux-kernel, linux-arm-kernel, linux-mediatek

Il 08/03/24 21:29, Nícolas F. R. A. Prado ha scritto:
> Support for fhctl clocks in apmixedsys was introduced at a later point
> and to this moment only one mt6795 based platform has a fhctl DT node
> present. Therefore the fhctl support in apmixedsys should be seen as
> optional and not cause an error when it is missing.
> 
> Change the message's log level to warning. The warning level is chosen
> so that it will still alert the fact that fhctl support might be
> unintentionally missing, but without implying that this is necessarily
> an issue.
> 
> Even if the FHCTL DT nodes are added to all current platforms moving
> forward, since those changes won't be backported, this ensures stable
> kernel releases won't have live with this error.
> 
> Fixes: d7964de8a8ea ("clk: mediatek: Add new clock driver to handle FHCTL hardware")
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



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

* Re: [PATCH] clk: mediatek: pllfh: Don't log error for missing fhctl node
  2024-03-08 20:29 [PATCH] clk: mediatek: pllfh: Don't log error for missing fhctl node Nícolas F. R. A. Prado
  2024-03-11  8:56 ` AngeloGioacchino Del Regno
@ 2024-04-11  3:49 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2024-04-11  3:49 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno, Chen-Yu Tsai, Edward-JW Yang,
	Johnson Wang, Matthias Brugger, Michael Turquette,
	Nícolas F. R. A. Prado
  Cc: kernel, linux-clk, linux-kernel, linux-arm-kernel, linux-mediatek,
	Nícolas F. R. A. Prado

Quoting Nícolas F. R. A. Prado (2024-03-08 12:29:56)
> Support for fhctl clocks in apmixedsys was introduced at a later point
> and to this moment only one mt6795 based platform has a fhctl DT node
> present. Therefore the fhctl support in apmixedsys should be seen as
> optional and not cause an error when it is missing.
> 
> Change the message's log level to warning. The warning level is chosen
> so that it will still alert the fact that fhctl support might be
> unintentionally missing, but without implying that this is necessarily
> an issue.
> 
> Even if the FHCTL DT nodes are added to all current platforms moving
> forward, since those changes won't be backported, this ensures stable
> kernel releases won't have live with this error.
> 
> Fixes: d7964de8a8ea ("clk: mediatek: Add new clock driver to handle FHCTL hardware")
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---

Applied to clk-next

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

end of thread, other threads:[~2024-04-11  3:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-08 20:29 [PATCH] clk: mediatek: pllfh: Don't log error for missing fhctl node Nícolas F. R. A. Prado
2024-03-11  8:56 ` AngeloGioacchino Del Regno
2024-04-11  3:49 ` Stephen Boyd

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