From: "Sung-Chi, Li" <lschyi@chromium.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: "Lee Jones" <lee@kernel.org>, "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Benson Leung" <bleung@chromium.org>,
"Guenter Roeck" <groeck@chromium.org>,
"Thomas Weißschuh" <thomas@weissschuh.net>,
"Jean Delvare" <jdelvare@suse.com>,
devicetree@vger.kernel.org, chrome-platform@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v2] hwmon: (cros_ec) register thermal sensors to thermal framework
Date: Tue, 12 Nov 2024 15:42:01 +0800 [thread overview]
Message-ID: <ZzMGyaBGX-yLZs8B@google.com> (raw)
In-Reply-To: <4cb3b1c7-86fa-4344-a413-031723f31f1d@roeck-us.net>
On Mon, Nov 11, 2024 at 09:01:33AM -0800, Guenter Roeck wrote:
> On 11/11/24 01:50, Sung-Chi wrote:
> > From: "Sung-Chi, Li" <lschyi@chromium.org>
> >
> > cros_ec hwmon driver probes available thermal sensors when probing the
> > driver. Register these thermal sensors to the thermal framework, such
> > that thermal framework can adopt these sensors as well.
> >
> > To make cros_ec registrable to thermal framework, the cros_ec dts need
> > the corresponding changes:
> >
> > &cros_ec {
> > #thermal-sensor-cells = <1>;
> > };
> >
> > Change-Id: I29b638427c715cb44391496881fc61ad53abccaf
>
> Drop.
>
> > Signed-off-by: Sung-Chi, Li <lschyi@chromium.org>
>
> Detailed explanation will be needed: Why not use HWMON_C_REGISTER_TZ ?
> Unless I am missing something, this code just duplicates code from the hwmon core.
>
> Please do not send follow-up patch series as response to previous ones.
>
> Guenter
>
Hi, thank you for pointing out using HWMON_C_REGISTER_TZ. After checking how
HWMON_C_REGSITER_TZ works, I think I only need to add one line into the
cros_ec_hwmon_info, and almost all concerns Thomas pointed out in latest reply
would be resolved automatically (because there would be only one line of change,
and that change is just a hwmon configuration, so should be a valid way of
combining with the thermal system).
Thank all for reviewing and giving inputs, and I will soon send out the one
line patch.
Best,
Sung-Chi, Li
next prev parent reply other threads:[~2024-11-12 7:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-11 7:49 [PATCH] hwmon: (cros_ec) register thermal sensors to thermal framework Sung-Chi, Li
2024-11-11 8:16 ` Thomas Weißschuh
2024-11-11 9:50 ` [PATCH v2] " Sung-Chi
2024-11-11 9:50 ` [PATCH v2 2/2] dt-bindings: mfd: Add properties for thermal sensor cells Sung-Chi
2024-11-11 20:08 ` Conor Dooley
2024-11-11 16:30 ` [PATCH v2] hwmon: (cros_ec) register thermal sensors to thermal framework Thomas Weißschuh
2024-11-11 17:01 ` Guenter Roeck
2024-11-12 7:42 ` Sung-Chi, Li [this message]
2024-11-13 2:39 ` [PATCH v3 1/2] " Sung-Chi, Li
2024-11-13 2:39 ` [PATCH v3 2/2] dt-bindings: mfd: Add properties for thermal sensor cells Sung-Chi, Li
2024-11-13 3:05 ` Guenter Roeck
2024-11-25 8:52 ` Krzysztof Kozlowski
2024-11-25 8:54 ` Krzysztof Kozlowski
2024-11-25 15:13 ` Guenter Roeck
2024-11-25 15:18 ` Krzysztof Kozlowski
2024-11-25 16:41 ` Guenter Roeck
2024-11-25 17:12 ` Krzysztof Kozlowski
2024-11-13 3:04 ` [PATCH v3 1/2] hwmon: (cros_ec) register thermal sensors to thermal framework Guenter Roeck
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=ZzMGyaBGX-yLZs8B@google.com \
--to=lschyi@chromium.org \
--cc=bleung@chromium.org \
--cc=chrome-platform@lists.linux.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=groeck@chromium.org \
--cc=jdelvare@suse.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh@kernel.org \
--cc=thomas@weissschuh.net \
/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 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.