linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Zhang Rui <rui.zhang@intel.com>,
	Eduardo Valentin <edubezval@gmail.com>,
	Linux PM list <linux-pm@vger.kernel.org>,
	Lee Jones <lee.jones@linaro.org>
Subject: Re: [PATCH 1/2] thermal: db8500: Finalize device tree conversion
Date: Tue, 27 Aug 2019 13:21:35 +0200	[thread overview]
Message-ID: <CACRpkdYqjW_SHHLaSqgWO64CsGeyoOVGsOhnav0mwVA5W2fbuw@mail.gmail.com> (raw)
In-Reply-To: <47cb523f-60ad-750e-4374-6563f8230593@linaro.org>

On Thu, Aug 22, 2019 at 8:16 AM Daniel Lezcano
<daniel.lezcano@linaro.org> wrote:

> I've been through the DT and I don't understand why there is:
>
>         [ ... ]
>         trip0-temp = <70000>;
>         trip0-type = "active";
>         trip0-cdev-num = <1>;
>         trip0-cdev-name0 = "thermal-cpufreq-0";
>         [ ... ]
>
> Those bindings already exists for the thermal no?
>
> Why not create a thermal-zone node and then add the values above?

I guess you refer to arch/arm/boot/dts/ste-snowball.dts
where this is in the thermal@801573c0 node.
(I moved it to the main SoC file for the next kernel.)

I think the reason is that this was merged in:
commit dc1956b5f84de7d453ec4d9fe68385fffd689686
"Thermal: Add ST-Ericsson DB8500 thermal properties and platform data."
Date:   Thu Nov 15 18:56:43 2012 +0800

Thermal zones were not added until:
commit 4e5e4705bf69ea450f58fc709ac5888f321a9299
"thermal: introduce device tree parser"
Date:   Wed Jul 3 15:35:39 2013 -0400

Which is half a year after this device tree was written.

Apparently Hongbo stopped working on this driver before
that and didn't convert the driver or consumers over to the
new thermal zone APIs with trip points and cooling maps
defined in the device tree (which by the way is an awesome
feature).

> Another point is there are too many trip points, two should be enough,
> one for throttling and one for critical, the governor will handle that
> properly by stepping the opps.
>
> And one last point is the trip point should be passive, not active.

OK I get it, can we merge these two patches that just move
the code to the thermal driver and then I can make
a new patch or some new patches on top to migrate to
Eduardo's new framework for device tree defined thermal
zones?

Yours,
Linus Walleij

  reply	other threads:[~2019-08-27 11:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-17  6:32 [PATCH 1/2] thermal: db8500: Finalize device tree conversion Linus Walleij
2019-07-17  6:32 ` [PATCH 2/2] thermal: db8500: Use dev helper variable Linus Walleij
2019-07-25 12:21 ` [PATCH 1/2] thermal: db8500: Finalize device tree conversion Lee Jones
2019-08-03 13:58 ` Linus Walleij
2019-08-11 22:21   ` Linus Walleij
2019-08-22  6:16 ` Daniel Lezcano
2019-08-27 11:21   ` Linus Walleij [this message]
2019-08-27 13:24     ` Daniel Lezcano
2019-08-27 13:07   ` Linus Walleij
2019-08-27 13:54     ` Daniel Lezcano
2019-08-28  8:57       ` Linus Walleij
2019-08-28  9:04         ` Daniel Lezcano
2019-08-28 12:20           ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACRpkdYqjW_SHHLaSqgWO64CsGeyoOVGsOhnav0mwVA5W2fbuw@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=edubezval@gmail.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).