pmdomain: core: Print a message when unused power domains are disabled

Message ID 20231227-topic-pmdomain_spam-v1-1-ff0410086b36@linaro.org
State New
Headers
Series pmdomain: core: Print a message when unused power domains are disabled |

Commit Message

Konrad Dybcio Dec. 27, 2023, 3:18 p.m. UTC
  In a similar spirit to commit 12ca59b91d04 ("clk: Print an info line
before disabling unused clocks"), print the message in both ignore AND
cleanup cases to better inform the user (and more importantly, the
developer) when it happens.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 drivers/pmdomain/core.c | 1 +
 1 file changed, 1 insertion(+)


---
base-commit: 39676dfe52331dba909c617f213fdb21015c8d10
change-id: 20231227-topic-pmdomain_spam-2e86227bf02f

Best regards,
  

Comments

Ulf Hansson Jan. 22, 2024, 3:21 p.m. UTC | #1
On Wed, 27 Dec 2023 at 16:18, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>
> In a similar spirit to commit 12ca59b91d04 ("clk: Print an info line
> before disabling unused clocks"), print the message in both ignore AND
> cleanup cases to better inform the user (and more importantly, the
> developer) when it happens.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/pmdomain/core.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c
> index a1f6cba3ae6c..69902797a5bb 100644
> --- a/drivers/pmdomain/core.c
> +++ b/drivers/pmdomain/core.c
> @@ -1100,6 +1100,7 @@ static int __init genpd_power_off_unused(void)
>                 return 0;
>         }
>
> +       pr_info("genpd: Disabling unused power domains\n");
>         mutex_lock(&gpd_list_lock);
>
>         list_for_each_entry(genpd, &gpd_list, gpd_list_node)
>
> ---
> base-commit: 39676dfe52331dba909c617f213fdb21015c8d10
> change-id: 20231227-topic-pmdomain_spam-2e86227bf02f
>
> Best regards,
> --
> Konrad Dybcio <konrad.dybcio@linaro.org>
>
  

Patch

diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c
index a1f6cba3ae6c..69902797a5bb 100644
--- a/drivers/pmdomain/core.c
+++ b/drivers/pmdomain/core.c
@@ -1100,6 +1100,7 @@  static int __init genpd_power_off_unused(void)
 		return 0;
 	}
 
+	pr_info("genpd: Disabling unused power domains\n");
 	mutex_lock(&gpd_list_lock);
 
 	list_for_each_entry(genpd, &gpd_list, gpd_list_node)