All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thermal: rcar_gen3_thermal: Add support for up to five TSC nodes
@ 2021-03-09 16:24 Niklas Söderlund
  2021-03-10 10:11 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Niklas Söderlund @ 2021-03-09 16:24 UTC (permalink / raw)
  To: Daniel Lezcano, linux-pm; +Cc: linux-renesas-soc, Niklas Söderlund

Add support for up to five TSC nodes. The new THCODE values are taken
from the example in the datasheet.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
 drivers/thermal/rcar_gen3_thermal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c
index 75c69fe6e9553f25..e1e412348076b2ff 100644
--- a/drivers/thermal/rcar_gen3_thermal.c
+++ b/drivers/thermal/rcar_gen3_thermal.c
@@ -60,7 +60,7 @@
 #define MCELSIUS(temp)	((temp) * 1000)
 #define GEN3_FUSE_MASK	0xFFF
 
-#define TSC_MAX_NUM	4
+#define TSC_MAX_NUM	5
 
 /* default THCODE values if FUSEs are missing */
 static const int thcodes[TSC_MAX_NUM][3] = {
@@ -68,6 +68,7 @@ static const int thcodes[TSC_MAX_NUM][3] = {
 	{ 3393, 2795, 2216 },
 	{ 3389, 2805, 2237 },
 	{ 3415, 2694, 2195 },
+	{ 3356, 2724, 2244 },
 };
 
 /* Structure for thermal temperature calculation */
-- 
2.30.1


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

* Re: [PATCH] thermal: rcar_gen3_thermal: Add support for up to five TSC nodes
  2021-03-09 16:24 [PATCH] thermal: rcar_gen3_thermal: Add support for up to five TSC nodes Niklas Söderlund
@ 2021-03-10 10:11 ` Geert Uytterhoeven
  2021-03-10 11:58 ` Daniel Lezcano
  2021-03-17 12:39 ` [thermal: thermal/next] " thermal-bot for Niklas Söderlund
  2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2021-03-10 10:11 UTC (permalink / raw)
  To: Niklas Söderlund; +Cc: Daniel Lezcano, Linux PM list, Linux-Renesas

Hi Niklas,

On Tue, Mar 9, 2021 at 5:25 PM Niklas Söderlund
<niklas.soderlund+renesas@ragnatech.se> wrote:
> Add support for up to five TSC nodes. The new THCODE values are taken
> from the example in the datasheet.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

Thanks for your patch!

> --- a/drivers/thermal/rcar_gen3_thermal.c
> +++ b/drivers/thermal/rcar_gen3_thermal.c
> @@ -60,7 +60,7 @@
>  #define MCELSIUS(temp) ((temp) * 1000)
>  #define GEN3_FUSE_MASK 0xFFF
>
> -#define TSC_MAX_NUM    4
> +#define TSC_MAX_NUM    5

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

> @@ -68,6 +68,7 @@ static const int thcodes[TSC_MAX_NUM][3] = {
>         { 3393, 2795, 2216 },
>         { 3389, 2805, 2237 },
>         { 3415, 2694, 2195 },
> +       { 3356, 2724, 2244 },
>  };

I cannot comment on the actual values, though.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH] thermal: rcar_gen3_thermal: Add support for up to five TSC nodes
  2021-03-09 16:24 [PATCH] thermal: rcar_gen3_thermal: Add support for up to five TSC nodes Niklas Söderlund
  2021-03-10 10:11 ` Geert Uytterhoeven
@ 2021-03-10 11:58 ` Daniel Lezcano
  2021-03-17 12:39 ` [thermal: thermal/next] " thermal-bot for Niklas Söderlund
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2021-03-10 11:58 UTC (permalink / raw)
  To: Niklas Söderlund, linux-pm; +Cc: linux-renesas-soc

On 09/03/2021 17:24, Niklas Söderlund wrote:
> Add support for up to five TSC nodes. The new THCODE values are taken
> from the example in the datasheet.
> 
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---

Applied, thanks


-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

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

* [thermal: thermal/next] thermal: rcar_gen3_thermal: Add support for up to five TSC nodes
  2021-03-09 16:24 [PATCH] thermal: rcar_gen3_thermal: Add support for up to five TSC nodes Niklas Söderlund
  2021-03-10 10:11 ` Geert Uytterhoeven
  2021-03-10 11:58 ` Daniel Lezcano
@ 2021-03-17 12:39 ` thermal-bot for Niklas Söderlund
  2 siblings, 0 replies; 4+ messages in thread
From: thermal-bot for Niklas Söderlund @ 2021-03-17 12:39 UTC (permalink / raw)
  To: linux-pm
  Cc: niklas.soderlund+renesas, Geert Uytterhoeven, Daniel Lezcano,
	rui.zhang, amitk

The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     7fd49ca05be35a85c424a3ca8df931bd70c34535
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//7fd49ca05be35a85c424a3ca8df931bd70c34535
Author:        Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
AuthorDate:    Tue, 09 Mar 2021 17:24:19 +01:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Wed, 10 Mar 2021 12:58:28 +01:00

thermal: rcar_gen3_thermal: Add support for up to five TSC nodes

Add support for up to five TSC nodes. The new THCODE values are taken
from the example in the datasheet.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210309162419.2621359-1-niklas.soderlund+renesas@ragnatech.se
---
 drivers/thermal/rcar_gen3_thermal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c
index 75c69fe..e1e4123 100644
--- a/drivers/thermal/rcar_gen3_thermal.c
+++ b/drivers/thermal/rcar_gen3_thermal.c
@@ -60,7 +60,7 @@
 #define MCELSIUS(temp)	((temp) * 1000)
 #define GEN3_FUSE_MASK	0xFFF
 
-#define TSC_MAX_NUM	4
+#define TSC_MAX_NUM	5
 
 /* default THCODE values if FUSEs are missing */
 static const int thcodes[TSC_MAX_NUM][3] = {
@@ -68,6 +68,7 @@ static const int thcodes[TSC_MAX_NUM][3] = {
 	{ 3393, 2795, 2216 },
 	{ 3389, 2805, 2237 },
 	{ 3415, 2694, 2195 },
+	{ 3356, 2724, 2244 },
 };
 
 /* Structure for thermal temperature calculation */

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

end of thread, other threads:[~2021-03-17 12:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 16:24 [PATCH] thermal: rcar_gen3_thermal: Add support for up to five TSC nodes Niklas Söderlund
2021-03-10 10:11 ` Geert Uytterhoeven
2021-03-10 11:58 ` Daniel Lezcano
2021-03-17 12:39 ` [thermal: thermal/next] " thermal-bot for Niklas Söderlund

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.