[PATCH v2 3/5] thermal: imx_tmu: Increase the log level for high temperatures

2023-09-05 Thread sbabic
> From: Fabio Estevam 
> 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 
> Reviewed-by: Tom Rini 
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH,Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=


Re: [PATCH v2 3/5] thermal: imx_tmu: Increase the log level for high temperatures

2023-08-23 Thread Tom Rini
On Wed, Aug 23, 2023 at 02:59:09PM -0300, Fabio Estevam wrote:

> From: Fabio Estevam 
> 
> 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 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: PGP signature


[PATCH v2 3/5] thermal: imx_tmu: Increase the log level for high temperatures

2023-08-23 Thread Fabio Estevam
From: Fabio Estevam 

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 
---
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, _tmp);
-- 
2.34.1