clk: Print an info line before disabling unused clocks
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Tue, 7 Mar 2023 13:29:28 +0000 (14:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:05:26 +0000 (17:05 +0200)
commitbc6d766991e1456b54118b7391e4c13b22a616c1
tree41f92753aa5b8d0e1cc04482e06ff40181138ce6
parentf3d89bc7dd65a0cb5fe908ca60cf8c0972d61946
clk: Print an info line before disabling unused clocks

[ Upstream commit 12ca59b91d04df32e41be5a52f0cabba912c11de ]

Currently, the regulator framework informs us before calling into
their unused cleanup paths, which eases at least some debugging. The
same could be beneficial for clocks, so that random shutdowns shortly
after most initcalls are done can be less of a guess.

Add a pr_info before disabling unused clocks to do so.

Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230307132928.3887737-1-konrad.dybcio@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Stable-dep-of: e581cf5d2162 ("clk: Get runtime PM before walking tree during disable_unused")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk.c