1. 15 3月, 2011 1 次提交
    • H
      hwmon/f71882fg: Add support for f71889ed · 3cad4022
      Hans de Goede 提交于
      Note that this patch also makes 2 changes to the code paths for the f71889fg
      to keep the code unified between the 2 (for simplicities sake). Both of these
      are harmless for then f71889fg:
      
      1) The first change is to always set the FAN_PROG_SEL bit to 0. This influences
         accesses to some banked fan / pwm registers. On the f71889fg no registers
         which we use are banked. On the f71889ed however some more fan registers
         have been banked including one which we use, by making the FAN_PROG_SEL bit
         0, address 0x96 will point to the right register.
      2) The second change is to see a FANx_TEMP_SEL value of 0 as pointing to
         a PECI / AMDSI value, and thus disable our pwm related sysfs attr.
         This is correct for the f71889ed and on the f71889fg 0 is a reserved
         value, so we should never see it and if we do, disabling the pwm related
         sysfs attr is a sane thing to do.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Tested-by: NThomas Greve <tg42@gmx.net>
      Tested-by: NSander Eikelenboom <linux@eikelenboom.it>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      3cad4022
  2. 21 8月, 2010 1 次提交
    • A
      revert "hwmon: f71882fg: add support for the Fintek F71808E" · f2e41e91
      Andrew Morton 提交于
      Revert commit 7721fea3 ("hwmon:
      f71882fg: add support for the Fintek F71808E").
      
      Hans said:
      
      : A second review after I've received a data sheet for this device from
      : Fintek has turned up a few bugs.
      :
      : Unfortunately Giel (nor I) have time to fix this in time for the 2.6.36
      : cycle.  Therefor I would like to see this patch reverted as not having any
      : support for the hwmon function of this superio chip is better then having
      : unreliable support.
      
      Cc: Giel van Schijndel <me@mortis.eu>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jonathan Cameron <jic23@cam.ac.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f2e41e91
  3. 10 8月, 2010 1 次提交
  4. 10 12月, 2009 1 次提交
    • H
      hwmon: (f71882fg) Add support for the f71889fg (version 2) · 7669896f
      Hans de Goede 提交于
      This adds support for the Fintek f71889fg to the f71882fg driver,
      many thanks to Gerd v. Egidy for providing (remote) access to a
      machine which such an ic.
      
      Note that this bit of the patch:
      -	val = SENSORS_LIMIT(val, 0, 255);
      +
      +	if (data->type == f71889fg)
      +		val = SENSORS_LIMIT(val, -128, 127);
      +	else
      +		val = SENSORS_LIMIT(val, 0, 127);
      
      Changes behaviour for already supported models, the new behaviour is correct
      as the already supported models have bit 7 of the involved registers fixed at
      0, so the previous behaviour which allowed setting temp zone limits > 127
      was not correct.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      7669896f
  5. 16 6月, 2009 1 次提交
  6. 07 1月, 2009 1 次提交