Message ID | 6bb66f529eaab58b3a75eea3386233cbca27f818.1595612650.git.gurus@codeaurora.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [RESEND,v1,1/2] thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 1 PMIC peripherals | expand |
Quoting Guru Das Srinagesh (2020-07-24 10:46:11) > From: Veera Vegivada <vvegivad@codeaurora.org> > > 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. > > Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org> > Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org> > --- Probably needs a fixes tag. And why not make it first in the series? > drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >
On Tue, Jul 28, 2020 at 06:09:12PM -0700, Stephen Boyd wrote: > Quoting Guru Das Srinagesh (2020-07-24 10:46:11) > > From: Veera Vegivada <vvegivad@codeaurora.org> > > > > 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. > > > > Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org> > > Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org> > > --- > > Probably needs a fixes tag. And why not make it first in the series? Will add one and move this to first in the series. > > > drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > >
diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c index 05a9601..6d8f090 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> @@ -212,7 +212,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; }