Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1547925 > unrolled thread

[PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred device for ppmu device

Started byChanwoo Choi <cw00.choi@samsung.com>
First post2016-12-28 13:00 +0100
Last post2016-12-30 13:10 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred device  for ppmu device Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-28 13:00 +0100
    Re: [PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred  device for ppmu device MyungJoo Ham <myungjoo.ham@samsung.com> - 2016-12-30 11:40 +0100
      Re: [PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred  device for ppmu device Chanwoo Choi <cwchoi00@gmail.com> - 2016-12-30 13:10 +0100

#1547925 — [PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred device for ppmu device

FromChanwoo Choi <cw00.choi@samsung.com>
Date2016-12-28 13:00 +0100
Subject[PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred device for ppmu device
Message-ID<sTl3I-7Id-17@gated-at.bofh.it>
This patch just adds the simple log to show the PPMU device's registration
during the kernel booting.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
 drivers/devfreq/event/exynos-ppmu.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
index fb3706faf5bd..9b5294d0bff4 100644
--- a/drivers/devfreq/event/exynos-ppmu.c
+++ b/drivers/devfreq/event/exynos-ppmu.c
@@ -591,7 +591,7 @@ static int exynos_ppmu_parse_dt(struct platform_device *pdev,
 	info->ppmu.clk = devm_clk_get(dev, "ppmu");
 	if (IS_ERR(info->ppmu.clk)) {
 		info->ppmu.clk = NULL;
-		dev_warn(dev, "cannot get PPMU clock\n");
+		dev_dbg(dev, "cannot get PPMU clock\n");
 	}
 
 	ret = of_get_devfreq_events(np, info);
@@ -643,6 +643,9 @@ static int exynos_ppmu_probe(struct platform_device *pdev)
 				"failed to add devfreq-event device\n");
 			return PTR_ERR(edev[i]);
 		}
+
+		pr_info("exynos-ppmu: new PPMU device registered %s (%s)\n",
+			dev_name(&pdev->dev), desc[i].name);
 	}
 
 	clk_prepare_enable(info->ppmu.clk);
-- 
1.9.1

[toc] | [next] | [standalone]


#1548528 — Re: [PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred device for ppmu device

FromMyungJoo Ham <myungjoo.ham@samsung.com>
Date2016-12-30 11:40 +0100
SubjectRe: [PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred device for ppmu device
Message-ID<sU2Ln-39f-1@gated-at.bofh.it>
In reply to#1547925
On Wed, Dec 28, 2016 at 8:56 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote:
> This patch just adds the simple log to show the PPMU device's registration
> during the kernel booting.
>
> Cc: Kukjin Kim <kgene@kernel.org>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Cc: Javier Martinez Canillas <javier@osg.samsung.com>
> Cc: linux-samsung-soc@vger.kernel.org
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> ---
>  drivers/devfreq/event/exynos-ppmu.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
> index fb3706faf5bd..9b5294d0bff4 100644
> --- a/drivers/devfreq/event/exynos-ppmu.c
> +++ b/drivers/devfreq/event/exynos-ppmu.c
> @@ -591,7 +591,7 @@ static int exynos_ppmu_parse_dt(struct platform_device *pdev,
>         info->ppmu.clk = devm_clk_get(dev, "ppmu");
>         if (IS_ERR(info->ppmu.clk)) {
>                 info->ppmu.clk = NULL;
> -               dev_warn(dev, "cannot get PPMU clock\n");
> +               dev_dbg(dev, "cannot get PPMU clock\n");

Do you really want not to emit warning with a clock not found?

>         }
>
>         ret = of_get_devfreq_events(np, info);
> @@ -643,6 +643,9 @@ static int exynos_ppmu_probe(struct platform_device *pdev)
>                                 "failed to add devfreq-event device\n");
>                         return PTR_ERR(edev[i]);
>                 }
> +
> +               pr_info("exynos-ppmu: new PPMU device registered %s (%s)\n",
> +                       dev_name(&pdev->dev), desc[i].name);
>         }
>
>         clk_prepare_enable(info->ppmu.clk);
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
MyungJoo Ham, Ph.D.
S/W Center, Samsung Electronics

[toc] | [prev] | [next] | [standalone]


#1548564 — Re: [PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred device for ppmu device

FromChanwoo Choi <cwchoi00@gmail.com>
Date2016-12-30 13:10 +0100
SubjectRe: [PATCH v2 4/8] PM / devfreq: exynos-ppmu: Show the registred device for ppmu device
Message-ID<sU4at-4aa-1@gated-at.bofh.it>
In reply to#1548528
2016-12-30 19:35 GMT+09:00 MyungJoo Ham <myungjoo.ham@samsung.com>:
> On Wed, Dec 28, 2016 at 8:56 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote:
>> This patch just adds the simple log to show the PPMU device's registration
>> during the kernel booting.
>>
>> Cc: Kukjin Kim <kgene@kernel.org>
>> Cc: Krzysztof Kozlowski <krzk@kernel.org>
>> Cc: Javier Martinez Canillas <javier@osg.samsung.com>
>> Cc: linux-samsung-soc@vger.kernel.org
>> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
>> ---
>>  drivers/devfreq/event/exynos-ppmu.c | 5 ++++-
>>  1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
>> index fb3706faf5bd..9b5294d0bff4 100644
>> --- a/drivers/devfreq/event/exynos-ppmu.c
>> +++ b/drivers/devfreq/event/exynos-ppmu.c
>> @@ -591,7 +591,7 @@ static int exynos_ppmu_parse_dt(struct platform_device *pdev,
>>         info->ppmu.clk = devm_clk_get(dev, "ppmu");
>>         if (IS_ERR(info->ppmu.clk)) {
>>                 info->ppmu.clk = NULL;
>> -               dev_warn(dev, "cannot get PPMU clock\n");
>> +               dev_dbg(dev, "cannot get PPMU clock\n");
>
> Do you really want not to emit warning with a clock not found?

The clock is now optional on the exynos-bus.c driver. But we better to
keep the warning message. Instead, I'll try to add the clock to PPMU
which is missing the clock.

I'll send the next version.

[snip]

-- 
Best Regards,
Chanwoo Choi

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web