This is a note to let you know that I've just added the patch titled hwmon: (lm95241) Fix chip detection code
to the 2.6.39-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: hwmon-lm95241-fix-chip-detection-code.patch and it can be found in the queue-2.6.39 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <sta...@kernel.org> know about it. >From 27739e694a3c34b5e371575d74e500d60111c689 Mon Sep 17 00:00:00 2001 From: Guenter Roeck <guenter.ro...@ericsson.com> Date: Mon, 27 Jun 2011 11:22:46 -0700 Subject: hwmon: (lm95241) Fix chip detection code From: Guenter Roeck <guenter.ro...@ericsson.com> commit 27739e694a3c34b5e371575d74e500d60111c689 upstream. The LM95241 driver accepts every chip ID equal to or larger than 0xA4 as its own, and other chips such as LM95245 use chip IDs in the accepted ID range. This results in false chip detection. Fix problem by accepting only the known LM95241 chip ID. Signed-off-by: Guenter Roeck <guenter.ro...@ericsson.com> Acked-by: Jean Delvare <kh...@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gre...@suse.de> --- drivers/hwmon/lm95241.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwmon/lm95241.c +++ b/drivers/hwmon/lm95241.c @@ -339,7 +339,7 @@ static int lm95241_detect(struct i2c_cli if ((i2c_smbus_read_byte_data(new_client, LM95241_REG_R_MAN_ID) == MANUFACTURER_ID) && (i2c_smbus_read_byte_data(new_client, LM95241_REG_R_CHIP_ID) - >= DEFAULT_REVISION)) { + == DEFAULT_REVISION)) { name = DEVNAME; } else { dev_dbg(&adapter->dev, "LM95241 detection failed at 0x%02x\n", Patches currently in stable-queue which might be from guenter.ro...@ericsson.com are queue-2.6.39/hwmon-pmbus-improve-fan-detection.patch queue-2.6.39/hwmon-pmbus-use-long-variables-for-register-to-data.patch queue-2.6.39/hwmon-lm95241-fix-chip-detection-code.patch queue-2.6.39/hwmon-pmbus-improve-auto-detection-of-temperature-status.patch queue-2.6.39/hwmon-pmbus-drop-check-for-pmbus-revision-register-in.patch queue-2.6.39/hwmon-pmbus-auto-detect-temp2-and-temp3.patch queue-2.6.39/hwmon-lm95241-fix-negative-temperature-results.patch _______________________________________________ stable mailing list stable@linux.kernel.org http://linux.kernel.org/mailman/listinfo/stable