Patch "thermal: qcom-spmi-temp-alarm: Don't suppress negative temp" has been added to the 5.4-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: qcom-spmi-temp-alarm: Don't suppress negative temp

to the 5.4-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-qcom-spmi-temp-alarm-don-t-suppress-negative.patch
and it can be found in the queue-5.4 subdirectory.

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



commit 2d3d749622d02cc8f7a8a0e4a79fb5e20401e6ed
Author: Veera Vegivada <vvegivad@xxxxxxxxxxxxxx>
Date:   Wed Jul 29 09:52:51 2020 -0700

    thermal: qcom-spmi-temp-alarm: Don't suppress negative temp
    
    [ Upstream commit 0ffdab6f2dea9e23ec33230de24e492ff0b186d9 ]
    
    Currently driver is suppressing the negative temperature
    readings from the vadc. Consumers of the thermal zones need
    to read the negative temperature too. Don't suppress the
    readings.
    
    Fixes: c610afaa21d3c6e ("thermal: Add QPNP PMIC temperature alarm driver")
    Signed-off-by: Veera Vegivada <vvegivad@xxxxxxxxxxxxxx>
    Signed-off-by: Guru Das Srinagesh <gurus@xxxxxxxxxxxxxx>
    Reviewed-by: Stephen Boyd <sboyd@xxxxxxxxxx>
    Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/944856eb819081268fab783236a916257de120e4.1596040416.git.gurus@xxxxxxxxxxxxxx
    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 bf7bae42c141c..6dc879fea9c8a 100644
--- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c
+++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2011-2015, 2017, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2015, 2017, 2020, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/bitops.h>
@@ -191,7 +191,7 @@ static int qpnp_tm_get_temp(void *data, int *temp)
 		chip->temp = mili_celsius;
 	}
 
-	*temp = chip->temp < 0 ? 0 : chip->temp;
+	*temp = chip->temp;
 
 	return 0;
 }



[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