From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: rjw@rjwysocki.net, linux-acpi@vger.kernel.org,
linux-pm@vger.kernel.org, Sebastian Reichel <sre@kernel.org>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Davidlohr Bueso <dave@stgolabs.net>,
Kees Cook <keescook@chromium.org>,
"Lee, Chun-Yi" <joeyli.kernel@gmail.com>,
Chuansheng Liu <chuansheng.liu@intel.com>,
ye xingchen <ye.xingchen@zte.com.cn>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] thermal: Hunt zero trip points thermal zones usage
Date: Mon, 6 Feb 2023 19:00:13 +0100 [thread overview]
Message-ID: <474338ff-26af-061e-1166-a1bd906ffe00@linaro.org> (raw)
In-Reply-To: <CAJZ5v0jzLCQt22MhfaAvL8w+RP7Y-YqxUdcgQ2u2Tz9i0CS+2A@mail.gmail.com>
On 06/02/2023 17:08, Rafael J. Wysocki wrote:
> On Fri, Feb 3, 2023 at 6:59 PM Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>>
>> Some drivers are declaring a thermal zone without any thermal trip
>> points.
>>
>> On the other side, we are introducing the function
>> thermal_zone_device_register_with_trips() which provides an array of
>> generic thermal trip points. When all the drivers will be converted to
>> the generic trip points, keeping two functions will be useless.
>>
>> Most of the drivers are now using
>> thermal_zone_device_register_with_trips() with the generic trip
>> points. As soon as the remaining drivers are merged, the
>> thermal_zone_device_register_with_trips() will be renamed to
>> thermal_zone_device_register().
>
> So why is this the first time I'm learning about this plan?
Well it is not a plan, it looked purely logical to me that the
_with_trips variant was added to support the generic trip points in
addition to the specific trips. As soon as all the drivers are
converted, there is no need to have these two functions anymore and we
can fall back to the previous name (or a shorter one).
>> Obviously this renaming can only happen if there are no more user of
>> the thermal_zone_device_register() function.
>>
>> This change uses thermal_zone_device_register_with_trips() with a NULL
>> parameter for the trip point array instead of
>> thermal_zone_device_register().
>
> And later it will be renamed to thermal_zone_device_register() again?
Yes, that was the idea, unify the name and then use a cocci script to
rename them all.
> Can we just stop confusing people this way?
>
> What would be wrong with changing both
> thermal_zone_device_register_with_trips() and
> thermal_zone_device_register() together when we are ready? And why
> can't the both be replaced with something line thermal_zone_register()
> doing all of the necessary things in one go? Why do we have to make
> confusing and redundant changes?
For me the result will be the same, if you prefer to wait for all the
drivers to be converted then it is fine for me.
--
<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
next prev parent reply other threads:[~2023-02-06 18:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-03 17:58 Daniel Lezcano
2023-02-03 18:08 ` Miquel Raynal
2023-02-06 14:56 ` Daniel Lezcano
2023-02-06 16:08 ` Rafael J. Wysocki
2023-02-06 17:28 ` Rafael J. Wysocki
2023-02-06 18:00 ` Daniel Lezcano [this message]
2023-02-06 18:13 ` Rafael J. Wysocki
2023-02-13 20:49 ` Sebastian Reichel
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=474338ff-26af-061e-1166-a1bd906ffe00@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=amitk@kernel.org \
--cc=chuansheng.liu@intel.com \
--cc=dave@stgolabs.net \
--cc=joeyli.kernel@gmail.com \
--cc=keescook@chromium.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=rui.zhang@intel.com \
--cc=sre@kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=ye.xingchen@zte.com.cn \
/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
all inboxes | Powered by JetHome®