14 Oct, 2007
3 commits
-
The bank switching code assumes that the bank selector is set to 0
when the driver is loaded. This might not be the case. This is exactly
the same bug as was fixed in the w83627ehf driver two months ago:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0956895aa6f8dc6a33210967252fd7787652537dIn practice, this bug was causing the sensor thermal types to be
improperly reported for my W83627THF the first time I was loading the
w83627hf driver. From the driver history, I'd say that it has been
broken since September 2005 (when we stopped resetting the chip by
default at driver load.)Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
We need to read the fan clock dividers at initialization time,
otherwise the code in store_fan_min() may use uninitialized values.
That's pretty much the same bug and same fix as for the w83627ehf
driver last month.Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This patch to drivers/hwmon/w83627hf converts many sysfs items from DEVICE_ATTRs
to SENSOR_DEVICE_ATTRs, and replaces macros which expand to define redundant
callbacks, with callbacks which use the SENSOR_DEV.nr to know what to do.Signed-off-by: Jim Cromie
Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman
11 Oct, 2007
6 commits
-
This patch adds a new merged driver for FSC sensor chips, it merges the fscher
and fscpos drivers and adds support for the FSC Scylla, Heracles and Heimdall
chips.Signed-off-by: Hans de Goede
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Roel Kluin found a minor defect in the init code if
hwmon device registration fails.Signed-off-by: Darrick J. Wong
Signed-off-by: Mark M. Hoffman -
This patch adds support for the SMSC SCH3112, SCH3114, and SCH3116 Super-I/O
chips. These chips feature identical hardware monitoring capabilites with the
expection that some of the fan inputs and pmw outputs don't exist.The hardware monitoring features of the SCH311x chips can only be accessed via
the ISA bus. The driver therefore registers as a platform driver, if such a
chip is detected.Signed-off-by: Juerg Haefliger
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
class_dev -> hwmon_dev
Signed-off-by: Mark M. Hoffman
-
Move functions to group them logically. Device and I2C functions go in separate
places. No functional changes (really!).Signed-off-by: Juerg Haefliger
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This patch cleans up and prepares the dme1737 driver for support of the sch311x
chips. (Almost) no functional changes.- Replaced whitespaces with tabs.
- Removed empty lines.
- Added _i2c_ to names of functions that are strictly I2C related.
- Added 4 new functions: dme1737_create_files, dme1737_remove_files,
dme1737_sio_enter, and dme1737_sio_exit.
- Added error messages in case client attach/detach fails.Signed-off-by: Juerg Haefliger
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman
10 Oct, 2007
31 commits
-
Add a driver to export IBM PowerExecutive power meter sensors.
Signed-off-by: Darrick J. Wong
Signed-off-by: Mark M. Hoffman -
This patch adds support for the Celeron 4xx based on Core 2 core.
Signed-off-by: Rudolf Marek
Signed-off-by: Mark M. Hoffman -
A stupid bit shifting bug caused the VID value to be always exported
even when the hardware is configured for something different.Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
The upcoming libsensors 3 needs these individual alarm and beep files.
For the W83781D, this is quirky because this chip has a single alarm
bit for both temp2 and temp3.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
The VRM value is not read from chip registers, so there's no need
to update the device data cache before exporting the VRM value to
user-space.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Signed-off-by: Mark M. Hoffman
-
Fix a bug in the code examples, make them comply with CodingStyle,
and indent them for a better redability.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Here is a patch adding some text to the sysfs interface documentation on how
settings written to sysfs attributes should be handled, focussing mainly on
error handling. This version incorperates Jean's latest comments.Signed-off-by: Hans de Goede
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
type_name was used before being set. See why I don't like play-it-safe
variable initializations: they prevent the compiler from warning you
about such mistakes. So fix that as well.Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Signed-off-by: Jean Delvare
Acked-by: Krzysztof Helt
Signed-off-by: Mark M. Hoffman -
Add individual alarm files to the lm87 driver. The new libsensors
needs this.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Missing parentheses in the definition of FAN_FROM_REG cause a division
by zero for a specific register value.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Add individual alarm files to the lm78 driver, these are needed by
the next version of libsensors.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Now that we have standard sysfs names to export temperature offset
values, add this feature to the lm90 driver. All supported chips
except the MAX6657, MAX6658 and MAX6659 support it.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
* Drop HWMON from the dependency list of ABITUGURU3 and LM93: this is
now handled at menu level.
* Make the Abit, Asus and FSC chip drivers depend on X86. These are
custom chips which can only be found on their respective manufacturer's
systems, and these manufacturers only do x86 hardware AFAIK.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
This patch converts the driver to individual alarm files
as required by the new lmsensors library.Signed-off-by: Krzysztof Helt
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This is conversion of the driver to the dynamic sysfs callbacks.
Signed-off-by: Krzysztof Helt
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This patch make use the interrupt status register instead
of the interrupt status mirror register. Reading of the mirror
register does not clear alarms.Signed-off-by: Krzysztof Helt
Signed-off-by: Mark M. Hoffman -
Add support for the IT8716F and IT8718F fan4 and fan5. The late
revisions of the IT8712F have these too but support is harder to add
and nobody asked for it yet, so I didn't include it.Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Add new sysfs alarm methodology to w83791d driver
Signed-off-by: Charles Spirakis
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Signed-off-by: Auke Kok
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
The lm93 driver doesn't follow the standard naming convention for its
vid files. Fix this so that libsensors will pick them.Signed-off-by: Jean Delvare
Acked-by: Hans J. Koch
Signed-off-by: Mark M. Hoffman -
Trying to set the fan min limit to 0 currently writes 0 to the
register, which is an invalid value. It's read back as -1 and the
alarm flag is raised. Instead we should write 0xffff (maximum
value), which reads back as 0 and no alarm flag is raised.Signed-off-by: Jean Delvare
Acked-by: Juerg Haefliger
Signed-off-by: Mark M. Hoffman -
The way the lm85 driver currently handles the additional resolution
bits some chips have for the voltage and temperature measurements is
quite complex. This is my attempt to make it simpler.Signed-off-by: Jean Delvare
Acked-by: Juerg Haefliger
Signed-off-by: Mark M. Hoffman -
The future libsensors needs these individual alarm and fault files.
Also delete old and unused alarm defines.
Signed-off-by: Jean Delvare
Acked-by: Juerg Haefliger
Signed-off-by: Mark M. Hoffman -
The SMSC EMC6D100 supports 3 additional voltage channels. The lm85
driver reads the register values for these, but doesn't create the
corresponding sysfs files, so the user can't read the values nor write
the limits. Create the missing sysfs files.Signed-off-by: Jean Delvare
Acked-by: Juerg Haefliger
Signed-off-by: Mark M. Hoffman -
This lets us get rid of macro-generated functions and shrinks the
driver size by about 10%. I used a new style suggested by Mark M.
Hoffman to retrieve the channel number. Instead of:struct sensor_device_attribute *sda = to_sensor_dev_attr(attr);
int nr = sda->index;I do:
int nr = to_sensor_dev_attr(attr)->index;
This looks better, and even allows the compiler to do some minor
optimizations.Signed-off-by: Jean Delvare
Acked-by: Krzysztof Helt
Signed-off-by: Mark M. Hoffman -
Convert from class_device to device for hwmon_device_register/unregister
Signed-off-by: Tony Jones
Signed-off-by: Greg Kroah-Hartman
Signed-off-by: Kay Sievers
Signed-off-by: Mark M. Hoffman -
The CPU hotplug notifier_block coretemp_cpu_notifier is already defined
inside an #ifdef HOTPLUG_CPU, therefore marking it as __cpuinitdata is
quite a pointless thing to do.Also, remove duplicate prototype of function coretemp_update_device()
at the top of this file (another one already exists barely 10 lines
above this one :-)Signed-off-by: Satyam Sharma
Acked-by: Rudolf Marek
Signed-off-by: Mark M. Hoffman -
Add support for Fintek F75375S/SP and F75373.
Signed-off-by: Riku Voipio
Signed-off-by: Mark M. Hoffman -
* Document the name attribute.
* Document the *_label attributes.
* Drop "typical usage" lists, they no longer match the reality.
* Drop non hardware-monitoring related entries.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman