From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Fabio Estevam <festevam@gmail.com>, daniel.lezcano@linaro.org
Cc: rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com,
linux-pm@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org,
robh+dt@kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, Fabio Estevam <festevam@denx.de>
Subject: Re: [PATCH v2 1/3] dt-bindings: thermal-zones: Document critical-action
Date: Mon, 28 Aug 2023 20:54:37 +0200 [thread overview]
Message-ID: <d56cbf95-22b4-391f-dcb0-12a225d3e084@linaro.org> (raw)
In-Reply-To: <20230828141341.1583591-1-festevam@gmail.com>
On 28/08/2023 16:13, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> Document the critical-action property to describe the thermal
> action that will be taken after the critical temperature is reached.
>
> The possible values are "shutdown" and "reboot".
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> Changes since v1:
> - Make 'critical-action' to be of string type.
>
> .../devicetree/bindings/thermal/thermal-zones.yaml | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
> index 4f3acdc4dec0..a01456356d9f 100644
> --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
> +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
> @@ -75,6 +75,16 @@ patternProperties:
> framework and assumes that the thermal sensors in this zone
> support interrupts.
>
> + critical-action:
> + $ref: /schemas/types.yaml#/definitions/string
> + description:
> + The action that happens after the critical temperature is reached.
How some action can happen? Don't you mean that OS should perform this
action on critical temperature?
> + Possible values are "shutdown" and "reboot".
Don't repeat constraints in free form text.
> +
> + enum:
> + - shutdown # Trigger a shutdown after the critical temperature is reached
> + - reboot # Trigger a reboot after the critical temperature is reached
The comments are copying the description and enum value. Not really helpful.
Best regards,
Krzysztof
prev parent reply other threads:[~2023-08-28 18:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-28 14:13 [PATCH v2 1/3] dt-bindings: thermal-zones: Document critical-action Fabio Estevam
2023-08-28 14:13 ` [PATCH v2 2/3] reboot: Introduce hw_protection_reboot() Fabio Estevam
2023-08-28 14:13 ` [PATCH v2 3/3] thermal: thermal_core: Allow rebooting after critical temp Fabio Estevam
2023-08-28 18:54 ` Krzysztof Kozlowski [this message]
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=d56cbf95-22b4-391f-dcb0-12a225d3e084@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=amitk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@denx.de \
--cc=festevam@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=robh+dt@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).