]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon/f71882fg: Add support for f71889ed
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 Mar 2011 19:57:14 +0000 (20:57 +0100)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 15 Mar 2011 05:39:25 +0000 (22:39 -0700)
commit135745ed6b68dccf16cb89c37703ebaf48ff969e
tree81147d3ef8f5a8d6230ae531d00e929a887a77fa
parentec25930724b081083a3bd0db732b756f61a8849e
hwmon/f71882fg: Add support for f71889ed

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: Hans de Goede <hdegoede@redhat.com>
Tested-by: Thomas Greve <tg42@gmx.net>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Documentation/hwmon/f71882fg
drivers/hwmon/f71882fg.c