From: Tom Rini <trini@konsulko.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: sbabic@denx.de, peng.fan@nxp.com, u-boot@lists.denx.de,
Fabio Estevam <festevam@denx.de>
Subject: Re: [PATCH 4/5] thermal: imx_tmu: Fix th temperature unit
Date: Wed, 23 Aug 2023 13:37:10 -0400 [thread overview]
Message-ID: <20230823173710.GS3953269@bill-the-cat> (raw)
In-Reply-To: <20230823172637.303101-4-festevam@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]
On Wed, Aug 23, 2023 at 02:26:36PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> The temperature unit is millidegree Celsius, so divide by 1000 to correctly
> print the temperature values in Celsius.
>
> While at it, also change a typo: "has beyond" to "is beyond".
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> drivers/thermal/imx_tmu.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c
> index d9a04eaf79..f79b583811 100644
> --- a/drivers/thermal/imx_tmu.c
> +++ b/drivers/thermal/imx_tmu.c
> @@ -238,8 +238,8 @@ int imx_tmu_get_temp(struct udevice *dev, int *temp)
> return ret;
>
> while (cpu_tmp >= pdata->alert) {
> - dev_info(dev, "CPU Temperature (%dC) has beyond alert (%dC), close to critical (%dC) waiting...\n",
> - cpu_tmp, pdata->alert, pdata->critical);
> + dev_info(dev, "CPU Temperature (%dC) is beyond alert (%dC), close to critical (%dC) waiting...\n",
> + cpu_tmp / 1000, pdata->alert / 1000, pdata->critical / 1000);
> mdelay(pdata->polling_delay);
> ret = read_temperature(dev, &cpu_tmp);
> if (ret)
To follow-up on the patch about select'ing LOG, this shouldn't be
dev_info, it should be higher, at least warning if not critical. And
given the default LOGLEVEL of 4, it will be included and printed.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-08-23 17:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-23 17:26 [PATCH 1/5] imx8mm_evk_defconfig: Select CONFIG_IMX_TMU Fabio Estevam
2023-08-23 17:26 ` [PATCH 2/5] thermal: imx_tmu: Fix the polling default Fabio Estevam
2023-08-23 17:26 ` [PATCH 3/5] thermal: imx_tmu: Select LOG Fabio Estevam
2023-08-23 17:34 ` Tom Rini
2023-08-23 17:26 ` [PATCH 4/5] thermal: imx_tmu: Fix th temperature unit Fabio Estevam
2023-08-23 17:37 ` Tom Rini [this message]
2023-08-23 17:26 ` [PATCH 5/5] thermal: imx_tmu: Increase the polling interval Fabio Estevam
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=20230823173710.GS3953269@bill-the-cat \
--to=trini@konsulko.com \
--cc=festevam@denx.de \
--cc=festevam@gmail.com \
--cc=peng.fan@nxp.com \
--cc=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/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