[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZzMGyaBGX-yLZs8B@google.com>
Date: Tue, 12 Nov 2024 15:42:01 +0800
From: "Sung-Chi, Li" <lschyi@...omium.org>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Lee Jones <lee@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Benson Leung <bleung@...omium.org>,
Guenter Roeck <groeck@...omium.org>,
Thomas Weißschuh <thomas@...ssschuh.net>,
Jean Delvare <jdelvare@...e.com>, devicetree@...r.kernel.org,
chrome-platform@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-hwmon@...r.kernel.org
Subject: Re: [PATCH v2] hwmon: (cros_ec) register thermal sensors to thermal
framework
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@...omium.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@...omium.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
Powered by blists - more mailing lists