Patch "tg3: Fix temperature reporting" has been added to the 3.14-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
tg3: Fix temperature reporting
to the 3.14-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:
tg3-fix-temperature-reporting.patch
and it can be found in the queue-3.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
d3d11fe08ccc9bff174fc958722b5661f0932486Mon Sep 17 00:00:00 2001
From: Jean Delvare <[email protected]>
Date: Tue, 1 Sep 2015 18:07:41 +0200
Subject: tg3: Fix temperature reporting
From: Jean Delvare <[email protected]>
commit d3d11fe08ccc9bff174fc958722b5661f0932486 upstream.
The temperature registers appear to report values in degrees Celsius while the hwmon API mandates values to be exposed in millidegrees Celsius. Do the conversion so that the values reported by "sensors" are correct.
--- drivers/net/ethernet/broadcom/tg3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/broadcom/tg3.c +1 -1
@@ -10737,7 +10737,7 @@ static ssize_t tg3_show_temp(struct devitg3_ape_scratchpad_read (tp, &temperature, attr->index,sizeof (temperature));spin_unlock_bh (&tp->lock); -return sprintf (buf,"%u\n" , temperature); +return sprintf (buf,"%u\n" , temperature *1000 ); }
Patches currently in stable-queue which might be from [email protected] are
queue-3.14/tg3-fix-temperature-reporting.patch