Commit Graph
3078 Commits
Author SHA1 Message Date
Jean Delvare e1ddded53b Drop useless instruction. This is a backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3125 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-17 19:29:17 +00:00
Jean Delvare c43d5825e7 Minor updates: driver ID, mailing list.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3124 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-17 18:25:17 +00:00
Jean Delvare d62378fb12 Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3123 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-15 10:36:05 +00:00
Jean Delvare 081f0dd6a9 Fix MAX6659 reported driver.
Add Fintek F71805F detection.
Fix multi-byte Super-I/O chip ID display on detection failure.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3122 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-15 10:34:27 +00:00
Jean Delvare fcdc235ee3 Fix rounding error in PCxxxx DDR SDRAM speed computation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3121 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-15 10:28:08 +00:00
Jean Delvare d2e6e8561b Disable iconv when uclibc is used.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3120 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-14 16:51:44 +00:00
Mark M. Hoffman ca1432f131 Add a new ID for a smsc47b397 variant.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3119 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-12 03:49:55 +00:00
Jean Delvare 776c73bf22 Get rid of free_the_label(), we really can do without it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3118 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-06 17:27:29 +00:00
Jean Delvare 7ce3864411 Update FAQ:
* Add Q: Why did you decide not to support undocumented chips?
* Drop Q: How to avoid spam on the mailing-list?


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3117 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-05 21:07:02 +00:00
Mark M. Hoffman 2c5ffc1053 A trivial cleanup for getsysname() - there's no reason for matches[]
to be an automatic, or non-const.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3116 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-02 14:55:58 +00:00
Mark M. Hoffman efb1c0d53c Minor cleanup: get rid of an unnecessary forward declaration.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3115 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-01 15:38:56 +00:00
Jean Delvare 2c0a82502e The ADM1032 and ADT7461 chips have variants with address 0x4d
instead of 0x4c.
Add support for the ADT7468. It can't actually be distinguished from an
ADT7467 (the latter being a stripped down incarnation of the later).
Increase the ADT7467/ADT7468 confidence value if the device ID is exactly
one of the two documented in the datasheets.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3114 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-01 15:34:38 +00:00
Mark M. Hoffman b4598af0aa Remove a workaround for sysfs support that is no longer needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3113 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-01 15:31:35 +00:00
Jean Delvare b1a227f67a Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3112 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-30 17:38:35 +00:00
Jean Delvare eabdfe8b94 Display the real addresses (rather than offsets thereto) in flat
mode.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3111 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-30 17:30:55 +00:00
Jean Delvare 40a778e313 Continuous byte mode needs not only read byte capability but also
write byte capability.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3110 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-30 17:25:38 +00:00
Jean Delvare d9927a5a5e Fix a bug in argc check.
Only use PEC on the register write, not the readback, as it has proven to
cause trouble on some chips. Reads with PEC can be tested using i2cget.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3109 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-30 17:16:24 +00:00
Jean Delvare 47a3cc59c0 New helper program to read a single register from an I2C/SMBus
chip. It has byte data and word data read support as well as byte
write/byte read, and supports PEC too. Beware that byte write with PEC
enabled can write random values to registers on non-PEC-aware chips.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3108 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-29 20:59:22 +00:00
Jean Delvare 17e1b0c907 Add missing parentheses to some macros. Same was done to i2c.h
some months ago but we omitted to do the same in i2c-dev.h.
Drop I2C_FUNC_SMBUS_EMUL, it is meant as a convenient shortcut for plain
I2C bus drivers and has no use in user-space.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3107 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-29 18:03:23 +00:00
Jean Delvare 86a438a263 Add PEC support. This should help debugging PEC support and use
in the kernel drivers.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3106 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-28 21:05:03 +00:00
Jean Delvare f55e5038a3 Syncronize i2c_msg definition with i2c.h. Patch from Hideki
Iwamoto. Without this, I2C_RDWR ioctl does not work correctly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3105 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-27 18:11:57 +00:00
Mark D. Studebaker d5dd7b88cc updates
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3104 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-26 21:41:04 +00:00
Jean Delvare d541844ecc Discard I2C_ACK_TEST, which was commented out and never really
existed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3103 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-26 17:35:48 +00:00
Jean Delvare 5c70989fe9 Drop now useless #ifdef tests. i2c-dev.h defines everything we
need, and is part of this package (lm_sensors2) so it is always
up-to-date.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3102 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-25 18:57:42 +00:00
Jean Delvare d523b3b7d1 Fix misleading error message when no chip is found on Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3101 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-25 13:31:53 +00:00
Jean Delvare 739986c1db The i2c_smbus_data union block member has a comment stating that an
extra byte is required for block process call SMBus transactions. This
has been true for three weeks around June 2002, but no more since, so
it is about time that we drop this comment and fix the definition.
Spotted by Hideki Iwamoto.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3100 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-24 09:40:14 +00:00
Jean Delvare 400bdd4c14 More manufacturer names.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3099 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-19 17:29:23 +00:00
Mark M. Hoffman b374291396 (mmh)
Bugfix: lib/init.c wasn't compiling properly if SYSFS_SUPPORT was turned off.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3098 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 21:24:58 +00:00
Mark M. Hoffman 59a14e2ea4 update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3097 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:55:37 +00:00
Mark M. Hoffman a116313d54 (mmh)
This patch makes optional the sysfs support in libsensors.  The default is to
*disable* sysfs support if a 2.4.x kernel is detected, for all other versions,
support will be enabled.  This can be overridden in the top-level Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3096 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:39:53 +00:00
Mark M. Hoffman 85a0c8ccb2 (mmh)
This patch replaces the I2C chip enumeration (through sysfs) in lib/proc.c
with new functions in lib/sysfs (using libsysfs).  The patch also updates
the init code accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3095 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:38:19 +00:00
Mark M. Hoffman c277761d15 (mmh)
This patch replaces the I2C bus enumeration (through sysfs) in lib/proc.c
with a new function in lib/sysfs (using libsysfs).  The patch also updates
the init code accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3094 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:37:42 +00:00
Mark M. Hoffman 87fba1c487 (mmh)
This patch adds the files lib/sysfs.h and lib/sysfs.c, beginning with a rewrite
of the sysfs detection code (using libsyfs).  In the process, I replaced two
poorly named globals with better names, and moved them to sysfs.c.  The sysfs
detection now happens very early during library init, rather than later.

The long term plan is for the two global variables to disappear anyway, as
everything to do with sysfs should get moved into lib/sysfs.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3093 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:30:44 +00:00
Mark M. Hoffman 10337cf80b (mmh)
This trivial patch links the libsysfs library to the libsensors library.
One needs to build and install sysfsutils first:

http://linux-diag.sourceforge.net/Sysfsutils.html

This patch is naive, at least to start.  Later it will be made optional
depending on whether support for Linux 2.6.x is needed, or just 2.4.x.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3092 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:25:25 +00:00
Mark M. Hoffman 6504401cf8 (mmh)
This patch moves two macros from lib/proc.c to lib/data.h.  The macros
pick up the "sensors_" prefix along the way.  The motivation is the
same as the previous patch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3091 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 18:30:16 +00:00
Mark M. Hoffman 2c5441a2db (mmh)
This patch moves the chip and bus lists from lib/proc.c to lib/data.c.
The variables were already declared in lib/data.h.  Motivation: when
support for kernel 2.4.x becomes optional, lib/proc.c may not even be
compiled into the library... but these variables are still needed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3090 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 18:28:51 +00:00
Jean Delvare 1e29d075db Add large lookup tables for manufacturer names (based on data
provided by Rudolf Marek).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3089 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 15:21:12 +00:00
Jean Delvare 95a85c3aeb Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3088 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:55:54 +00:00
Jean Delvare 51c7b3d4d9 Drop -W, sensord warns too much with it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3087 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:55:35 +00:00
Jean Delvare e7efcf6578 (Aurelien Jarno) Drop EEPROM support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3086 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:54:42 +00:00
Jean Delvare 842c64de27 Kill an unused variable left over from a previous cleanup.
Backport from Linux 2.6, credits go to Andrew Morton.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3085 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-12 17:56:56 +00:00
Jean Delvare e02d1b734e Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3084 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:39:37 +00:00
Jean Delvare 1c9823cffd Compile userspace tools with -W.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3083 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:38:45 +00:00
Jean Delvare 2c0ca7852a Drop Linux-2.6 specific eeprom code, as we no longer support
eeproms on 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3082 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:27:20 +00:00
Jean Delvare ac478a3ef9 Do not log the algorithm name.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3081 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:23:58 +00:00
Jean Delvare 57e3589237 Declare foundsysfs in proc.h.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3080 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:09:42 +00:00
Jean Delvare ece5b07360 Drop all references to the algorithm names, as Linux 2.6 doesn't
export them. Do not rely on "i2cdetect -l" printing it, in case we drop
it there later. Change the adapter "match" field from a sub to a
regular expression, as this is how this field is actually used.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3079 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 14:39:55 +00:00
Jean Delvare 2cc8929c9e Stop printing the algorithm name unless /proc compatibility format
is requested. Print the correct bus type if bus functionality can be
queried (will work if i2c-dev is loaded and user has write access to
 /dev/i2c*).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3078 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 12:03:14 +00:00
Jean Delvare 32fbdf8ba4 Add a "quiet" parameter to open_i2c_dev() to prevent it from
displaying error messages.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3077 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 11:38:32 +00:00
Jean Delvare 27e2a62bab Fix bus matching mechanism which had always been broken for Linux
2.6. Original patch from Karsten Petersen.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3076 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 09:29:35 +00:00