Commit Graph
3515 Commits
Author SHA1 Message Date
Jean Delvare 8e64f3890e sensors-detect: Add Dallas DS75 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4325 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:45:49 +00:00
Jean Delvare 567c1e3e3a i2c-ali1563: Fix device initialization (backported from Linux 2.6)
The i2c-ali1563 initialization looks quite broken to me:
* If the I/O space isn't enabled, we forcibly set 3 bits in
  the PCI configuration space instead of just the one enabling
  the I/O space.
* After that we pretend to check if the write worked, but we
  don't actually read the new value from the register.
* It's probably not a good idea to enable the I/O space if no
  base address has been set.

So I propose the following changes to that part of the driver:
* Merge ali1563_enable() into ali1563_setup().
* Check the base address before the I/O space enabled bit.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4324 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:42:43 +00:00
Jean Delvare 529b3a0d08 Improve the status messages printed by the i2c-ali1563 driver.
This is a backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4323 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:36:29 +00:00
Jean Delvare 3979540106 bmcsensors: Fix debugging messages.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4322 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:17:37 +00:00
Jean Delvare 4967880163 i2c-nforce2: Drop unused reference to pci_dev. (2.6 backport)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4321 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:16:08 +00:00
Jean Delvare 7946ac235d Add ATI SB600 SMBus support, backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4320 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:05:43 +00:00
Jean Delvare 1376ab22c5 Add VIA CX700 SMBus support, backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4319 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 09:56:04 +00:00
Jean Delvare 4d2fbe0740 i2c-amd8111: Cleanups and fixes backported from Linux 2.6.
* Add an explicit mask when writing the low byte of a word.
* Use I2C_SMBUS_BLOCK_MAX instead of hardcoding 32.
* Use boolean not instead of bitwise not for bit tests, it's clearer.
* Return proper error values rather than -1.
* Fix a race on device registration, initialization should be done
  before the bus is registered.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4318 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 09:34:08 +00:00
Jean Delvare 0545ac0ba3 Drop function hexchar(). What was the point of reinventing printf?
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4317 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-04 21:03:12 +00:00
Jean Delvare a441a7710c i2cdetect, i2cdump, isadump: Flush the output in real time. That way it's
easier to find out which specific address causes problem if the system
freezes or the SMBus locks itself, for example.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4316 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-04 20:54:02 +00:00
Jean Delvare 669ce901d1 i2cdetect.8: Update to mention the optional parameters that can be passed
to restrict the scanning range.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4315 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-04 20:50:11 +00:00
Rudolf Marek 532217ed23 Add detection of MAX1668, MAX1805, MAX1989 - original code by ticket#2125
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4314 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-04 18:23:12 +00:00
Jean Delvare cadc300e3e sensors-detect: Clean up the EEPROM detection. These are not the primary
focus of the script, so their handling shouldn't take more time and
code than strictly necessary.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4313 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-25 12:28:42 +00:00
Jean Delvare f1a8ba3d1d sensors-detect: Speed up the LM75 and LM77 detection. The previous code
was using a brute force approach, quite reliable but very slow. The new
code should be just as reliable but about ten times faster.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4312 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-25 09:18:23 +00:00
Jean Delvare db652c9e92 sensors-detect: Do not bufferize stdout during probes. This makes it
easier to see what is being tried in real time, in particular if the
probing locks for any reason.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4311 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-24 21:05:49 +00:00
Jean Delvare c2b92a6a48 Indentation fixes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4310 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-24 20:24:21 +00:00
Jean Delvare 5328c1880b Drop a useless repeated comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4309 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-24 10:42:20 +00:00
Jean Delvare dd3a8b4948 sensors-detect: Drop legacy W83627HF ISA detection. It points users
to a driver we don't want them to use, causing unnecessary confusion.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4308 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-24 10:37:52 +00:00
Jean Delvare b21daf33c0 sensors-detect: Add VIA CX700 south bridge detection. It appears to
be compatible with the other recent VIA south bridges SMBus. No
datasheet though.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4307 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-24 08:00:47 +00:00
Jean Delvare 6ea2d0c7a8 Improve MAX6655/MAX6656 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4306 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-24 07:34:09 +00:00
Jean Delvare 3fb3c13ccd sensors-detect: Add detection of the Maxim MAX6655/MAX6656. Patch from
Olexiy Avramchenko.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4305 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-24 07:29:10 +00:00
Jean Delvare df7a40a8b2 sensors-detect:
- Only probe I2C addresses for which we know at least one device. This will
  speed up the probing a bit, and hopefully limit both user and hardware
  confusion.
- Drop ARP-capable device detection, we don't do anything useful with
  the information and we have no other reason to probe I2C address 0x61.
i2cdetect can be used instead when we want to know more about a given
I2C bus.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4304 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-24 06:58:16 +00:00
Philip Edelbrock 0dd54f3e6a Put back in placeholder versions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4301 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-16 00:00:08 +00:00
Philip Edelbrock b71ee14a2d Prep for 2.10.2 release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4297 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-15 23:30:51 +00:00
Jean Delvare 63228c12b3 Strip unneeded whitespace on configuration load.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4296 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-14 15:42:33 +00:00
Jean Delvare 0662aaa299 fancontrol.pl:
* Disable debugging by default
* Add support for non-i2c drivers
* More tolerant config file parsing (for some reason pwmconfig
  adds unneeded spaces, it should probably be fixed but it's always
  better to be tolrant nevertheless)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4295 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-14 15:20:06 +00:00
Jean Delvare e37c58cccd Warn the user that using the unhide_ICH_SMBus script breaks system
suspend/resume.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4294 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-14 12:17:46 +00:00
Jean Delvare a4d79953bd Bump version to 2.10.2.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4293 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-14 12:06:50 +00:00
Jean Delvare 0fe1b27538 vid_from_reg: Trim the VID value to the correct number of bits for each VRM.
Original patch by Rudolf Marek, backported from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4292 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-12 12:30:22 +00:00
Jean Delvare 26483311f4 sensors: Hide error on missing w83793 temp. Patch from Gong Jun (Winbond).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4291 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-12 10:29:25 +00:00
Jean Delvare 0600fe6293 decode-dimms: Remove spaces at end of lines.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4290 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-12 10:25:07 +00:00
Jean Delvare 140bc22947 Make sure that the ICH chip is one of the supported models. Otherwise
we would write to a random register with unpredictable results.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4289 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-11 21:11:05 +00:00
Jean Delvare 2387b4cd73 Drop commented out code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4288 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-09 07:58:52 +00:00
Mark M. Hoffman 6968eb16fe The sensors library relied on one structure having an identical layout in
memory as part of another structure.  This rather large patch fixes that by
making the smaller piece an explicit member of the larger.

I brought this patch into sync with the latest SVN, and tested it by comparing
objects files from the tree pre- and post- patch.

The remaining 99% of the credit goes to Bob Schlärmann <bob2@dsv.nl> for
creating the original patch... thanks Bob!

* Bob Schlärmann <bob2@dsv.nl> [2006-12-24 18:29:39 +0100]:
> The following patch changes all of the lib/chips.c entries and any function
> that uses sensors_chip_feature. Most of the conversion was done through a
> perl script, so if you don't agree with the syntax it'll be easy to change.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4287 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-09 02:46:13 +00:00
Jean Delvare b162d642a9 pwmconfig, fancontrol: Add support for non-i2c drivers. So far the
scripts were assuming that all drivers were i2c-based. As we want to
get rid of i2c-isa in Linux 2.6 soon, it's important to ensure that
platform drivers are handled properly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4286 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-07 22:10:02 +00:00
Jean Delvare 13541ab5c4 unhide_ICH_SMBus: New features!
* check that the user is root
* check if the SMBus is already there
* only load i2c-i801 if needed
* show the SMBus device line on success


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4285 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-07 18:33:23 +00:00
Jean Delvare 6c8dde0740 Add missing w83627ehf in9.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4284 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-06 22:38:37 +00:00
Rudolf Marek d43c1d23bd Add the unhide_ICH_SMBus script
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4283 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-06 22:18:39 +00:00
Jean Delvare dc9d483940 p4b_smbus: Add support for the ICH5. The Asus P4P800-X motherboard that
was given to our project by Winbond has its SMBus hidden and needs this.
Also update the documentation a bit.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4282 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-06 10:55:02 +00:00
Jean Delvare ddd9ba2baf sensord: Add support for the k8temp driver and for the voltage inputs
of the w83627ehf driver. Patch from Dave Platt.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4281 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-06 08:49:59 +00:00
Jean Delvare 55e8649c0d pwmconfig, fancontrol: Gracefully handle errors when writing to
sysfs files, as bash 3.1 otherwise displays them and this tends to
frighten the user.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4280 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-05 16:34:32 +00:00
Jean Delvare ac08de0cd3 Fix typo: successful.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4278 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-02 18:42:54 +00:00
Jean Delvare e0dfabe9f2 bmcsensors: Fix fragile structure initialization.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4277 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-02 18:41:52 +00:00
Jean Delvare 4a82f3e86c bmcsensors: Fix several compilation warnings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4276 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-02 18:35:41 +00:00
Mark M. Hoffman 7bb9db17d8 Run regression tests under valgrind, if it is available.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4275 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-30 06:04:06 +00:00
Mark M. Hoffman c510d7934f The caller of sensors_yylex() is responsible for free()'ing NAME strings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4274 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-30 04:43:37 +00:00
Mark M. Hoffman a938571fc5 Fix a memory leak in the scanner that occurs when we're missing a closing quote
before an immediate EOF.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4273 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-30 04:08:40 +00:00
Mark M. Hoffman b5ff067425 Modify libsensors scanner build flags...
* add -8
When using -Cf, flex defaults to generating a 7-bit scanner instead of 8-bit.
That's a bug, since we want the scanner to handle any character.  Using -8 restores
the proper behavior.

* change -Cf to -Cfe
This allows a nice reduction in object size (from ~60KiB to ~15KiB) with almost
no impact to speed (adds < 100 cycles to scanner, where total cycles is > 1M).



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4272 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-29 21:07:24 +00:00
Rudolf Marek c34c264f97 The PCI device for AMB is not accessible directly from PCI bus, gateway must be used. Ticket #2143
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4271 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-26 11:53:20 +00:00
Jean Delvare 73922b2883 Add user-space support for the ADM1029. Patch contributed by
Corentin Labbe.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4270 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-22 21:11:07 +00:00