From: Fabio Estevam <festevam@gmail.com>
To: sbabic@denx.de
Cc: peng.fan@nxp.com, trini@konsulko.com, u-boot@lists.denx.de,
Fabio Estevam <festevam@denx.de>
Subject: [PATCH v2 3/5] thermal: imx_tmu: Increase the log level for high temperatures
Date: Wed, 23 Aug 2023 14:59:09 -0300 [thread overview]
Message-ID: <20230823175911.319414-3-festevam@gmail.com> (raw)
In-Reply-To: <20230823175911.319414-1-festevam@gmail.com>
From: Fabio Estevam <festevam@denx.de>
dev_info() message is not printed by default. Increase the log level
to dev_crit(). This allows the critical messages related to the temperature
getting beyong the alert threshold to be displayed.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v1:
- Use dev_crit() instead of selecting LOG via Kconfig. (Tom)
drivers/thermal/imx_tmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c
index d9a04eaf79fb..d2ea084d2d2f 100644
--- a/drivers/thermal/imx_tmu.c
+++ b/drivers/thermal/imx_tmu.c
@@ -238,7 +238,7 @@ 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",
+ dev_crit(dev, "CPU Temperature (%dC) has beyond alert (%dC), close to critical (%dC) waiting...\n",
cpu_tmp, pdata->alert, pdata->critical);
mdelay(pdata->polling_delay);
ret = read_temperature(dev, &cpu_tmp);
--
2.34.1
next prev parent reply other threads:[~2023-08-23 17:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-23 17:59 [PATCH v2 1/5] imx8mm_evk_defconfig: Select CONFIG_IMX_TMU Fabio Estevam
2023-08-23 17:59 ` [PATCH v2 2/5] thermal: imx_tmu: Fix the polling default Fabio Estevam
2023-09-05 7:39 ` sbabic
2023-08-23 17:59 ` Fabio Estevam [this message]
2023-08-23 17:59 ` [PATCH v2 3/5] thermal: imx_tmu: Increase the log level for high temperatures Tom Rini
2023-09-05 7:39 ` sbabic
2023-08-23 17:59 ` [PATCH v2 4/5] thermal: imx_tmu: Fix the temperature unit Fabio Estevam
2023-09-05 7:39 ` sbabic
2023-08-23 17:59 ` [PATCH v2 5/5] thermal: imx_tmu: Increase the polling interval Fabio Estevam
2023-09-05 7:39 ` sbabic
2023-09-05 7:39 ` [PATCH v2 1/5] imx8mm_evk_defconfig: Select CONFIG_IMX_TMU sbabic
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=20230823175911.319414-3-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=festevam@denx.de \
--cc=peng.fan@nxp.com \
--cc=sbabic@denx.de \
--cc=trini@konsulko.com \
--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