From: Christian Marangi <ansuelsmth@gmail.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
Zhang Rui <rui.zhang@intel.com>,
Lukasz Luba <lukasz.luba@arm.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Lorenzo Bianconi <lorenzo@kernel.org>,
upstream@airoha.com
Subject: Re: [PATCH v3 1/3] dt-bindings: thermal: Add support for Airoha EN7581 thermal sensor
Date: Wed, 13 Nov 2024 21:19:25 +0100 [thread overview]
Message-ID: <673509d0.050a0220.f4111.c090@mx.google.com> (raw)
In-Reply-To: <487d0de5-6f70-4b82-a22b-5e74ba32da11@linaro.org>
On Wed, Nov 13, 2024 at 07:18:04PM +0100, Daniel Lezcano wrote:
>
> Hi Ansuel,
>
> On 13/11/2024 16:56, Christian Marangi wrote:
> > On Fri, Oct 18, 2024 at 12:48:04PM +0200, Christian Marangi wrote:
> > > Add support for Airoha EN7581 thermal sensor and monitor. This is a
> > > simple sensor for the CPU or SoC Package that provide thermal sensor and
> > > trip point for hot low and critical condition to fire interrupt and
> > > react on the abnormal state.
> > >
> > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> > > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
> >
> > Any news with this series? Everything wrong with the thermal core small
> > patch?
>
> I understand why you are trying to achieve this but usually it is the kernel
> which overloads the firmware description, not the opposite, no?
>
> Either way, we ignore the offset/slope from tzp and use a couple of private
> variables offset/slope in the driver (iow do not call
> thermal_zone_get_offset() thermal_zone_get_slope()). Or add the
> thermal_zone_set_offset() and thermal_zone_set_slope() helpers.
>
> I would prefer the first solution as for today I can not see any DT for
> ARM64 with the coefficients set. So may be we can consider the slope and the
> offset as a legacy which should be removed from sysfs and the thermal zone
> device parameters in a near future.
>
Hi Daniel,
Having set OPs is problematic as that would diverge from what is set in
DT that should always have priority.
Well yes my idea was trying to make use of them as currently there are
many driver that set these values but have the slope and offset in
thermal core always set to 0 and 1.
Thing is that reading temp with ADC is very common and in some way or
another you always have a slope and an offset so it makese sense to
permit to have those values preallocated instead of handling them in
priv struct.
Anyway if the idea is to drop that, I will happly move those values
handling back in the driver. Just need a confirm on that.
Also thanks for the feedback!
--
Ansuel
next prev parent reply other threads:[~2024-11-13 20:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-18 10:48 [PATCH v3 1/3] dt-bindings: thermal: Add support for Airoha EN7581 thermal sensor Christian Marangi
2024-10-18 10:48 ` [PATCH v3 2/3] thermal: of: Add devm_thermal_of_zone_register_with_params() variant Christian Marangi
2024-10-18 10:48 ` [PATCH v3 3/3] thermal: Add support for Airoha EN7581 thermal sensor Christian Marangi
2024-11-13 15:56 ` [PATCH v3 1/3] dt-bindings: " Christian Marangi
2024-11-13 18:18 ` Daniel Lezcano
2024-11-13 20:19 ` Christian Marangi [this message]
2024-11-14 7:56 ` Daniel Lezcano
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=673509d0.050a0220.f4111.c090@mx.google.com \
--to=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=lukasz.luba@arm.com \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=rui.zhang@intel.com \
--cc=upstream@airoha.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).