aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHans de Goede <j.w.r.degoede@hhs.nl>2006-06-04 14:24:11 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-22 14:10:34 -0400
commitb7c066044f4355d9fbe1ac45e03303b78d21e8d4 (patch)
tree4bcd5f967fcb44994eea388df23900f90fe94f0e /drivers
parenta2392e0b907b9633c31be14ee75bb39fce348b01 (diff)
[PATCH] abituguru: Fix fan detection
One of my testers had a problem where the driver only saw 2 of the 4 fan sensors his uGuru has, this fixes this. -accept 0x40 (bit 6) being high as a valid fan sensor setting for all fans not just fan 1, I have a feeling this bit indicates whether or not a fan is actually connected . Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/abituguru.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/abituguru.c b/drivers/hwmon/abituguru.c
index ab80b418bd69..59122cc0a50a 100644
--- a/drivers/hwmon/abituguru.c
+++ b/drivers/hwmon/abituguru.c
@@ -529,9 +529,8 @@ abituguru_detect_no_bank2_sensors(struct abituguru_data *data)
529 -0x08 enable beep 529 -0x08 enable beep
530 -0x01 enable alarm 530 -0x01 enable alarm
531 All other bits should be 0, but on some motherboards 531 All other bits should be 0, but on some motherboards
532 0x40 (bit 6) is also high, at least for fan1 */ 532 0x40 (bit 6) is also high for some of the fans?? */
533 if ((!i && (data->bank2_settings[i][0] & ~0xC9)) || 533 if (data->bank2_settings[i][0] & ~0xC9) {
534 (i && (data->bank2_settings[i][0] & ~0x89))) {
535 ABIT_UGURU_DEBUG(2, " bank2 sensor %d does not seem " 534 ABIT_UGURU_DEBUG(2, " bank2 sensor %d does not seem "
536 "to be a fan sensor: settings[0] = %02X\n", 535 "to be a fan sensor: settings[0] = %02X\n",
537 i, (unsigned int)data->bank2_settings[i][0]); 536 i, (unsigned int)data->bank2_settings[i][0]);