Patch "thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     thermal-drivers-qcom-temp-alarm-fix-inaccurate-warni.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ee64c4c946b888363d9dd4b3e61605eac5aceb44
Author: Luca Weiss <luca.weiss@xxxxxxxxxxxxx>
Date:   Thu Oct 20 16:52:37 2022 +0200

    thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2
    
    [ Upstream commit 8763f8acbf8aef22a2321d4c978cd078aa3b8f64 ]
    
    On gen2 chips the stage2 threshold is not 140 degC but 125 degC.
    
    Make the warning message clearer by using this variable and also by
    including the temperature that was checked for.
    
    Fixes: aa92b3310c55 ("thermal/drivers/qcom-spmi-temp-alarm: Add support for GEN2 rev 1 PMIC peripherals")
    Signed-off-by: Luca Weiss <luca.weiss@xxxxxxxxxxxxx>
    Reviewed-by: Amit Kucheria <amitk@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221020145237.942146-1-luca.weiss@xxxxxxxxxxxxx
    Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c
index 770f82cc9bca..247b39d57fa7 100644
--- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c
+++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c
@@ -252,7 +252,8 @@ static int qpnp_tm_update_critical_trip_temp(struct qpnp_tm_chip *chip,
 			disable_s2_shutdown = true;
 		else
 			dev_warn(chip->dev,
-				 "No ADC is configured and critical temperature is above the maximum stage 2 threshold of 140 C! Configuring stage 2 shutdown at 140 C.\n");
+				 "No ADC is configured and critical temperature %d mC is above the maximum stage 2 threshold of %ld mC! Configuring stage 2 shutdown at %ld mC.\n",
+				 temp, stage2_threshold_max, stage2_threshold_max);
 	}
 
 skip:



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux