2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00
Commit Graph

869 Commits

Author SHA1 Message Date
Mark D. Studebaker
68c3de4b5e (mds) Change accesses for LM75-compatible temp2/temp3
registers in I2C mode.

      Instead of using bank 1 and 2, which was in violation of
      the datasheets, use the separate I2C registers (usually
      0x48 and 0x49). Register these addresses separately
      using additional i2c_attach-client() calls.
      Users will see new "subclient" registration messages
      in the syslog.

      /proc and libsensors interfaces are unchanged, i.e. the
      chip still looks like a single device.

      This should fix temp2 and temp3 for the as99127f, which
      did not allow bank 1 and 2 accesses. Should not affect
      operation for other chips as they worked before.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@686 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-08 04:26:57 +00:00
Mark D. Studebaker
0ead31aaf1 (mds) Some helpful hints on setting fan divisors.
I always forget whether to increase or decrease so I figured
      it out and wrote it down.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@685 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-08 03:42:38 +00:00
Frodo Looijaard
8250fb4ed7 Fixed voodoo3 for kernel 2.3.37.
Please test. Changes in voodoo3_setup:

* Use pci_find_device instead of traversing the list ourselves;
* Eliminate flag, testing v3_num is just as good;
* Elimiate result, it was not used anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@684 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-07 17:16:27 +00:00
Frodo Looijaard
bbbcc3ec2d Better INSTALL instructions about compiling the package when
you have already patched your kernel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@683 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-04 21:37:30 +00:00
Frodo Looijaard
9fd2dc740e Changed W83783D detection as noted by Andreas Kurt Wege
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@682 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-03 16:51:37 +00:00
Frodo Looijaard
2ff447b225 make install fixes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@681 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-03 00:32:38 +00:00
Frodo Looijaard
d92cb07a98 Two bug fixes
* DDC only looked for on 0x50, as other addresses are treated as
  sub-addrs;
* LM78-J again displays right driver (oops...)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@680 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-30 02:07:24 +00:00
Frodo Looijaard
31bb93646b Applied Petr Vandrovec's patch for matrox cards and DDC detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@679 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-29 23:10:48 +00:00
Frodo Looijaard
90bc2835e6 Fixed a problem when the same address was used on different adapters
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@678 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-29 20:13:25 +00:00
Frodo Looijaard
8ffd490521 Slight formatting correction for ADM1021 chips, as committed by
Klaus Woltereck


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@677 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-25 00:40:44 +00:00
Frodo Looijaard
8199abde46 New sensors.conf keyword 'ignore'
This often-asked for, long-planned and somewhat-forgotten feature
makes it possible to tell libsensors-linked applications (like
the sensors program) that certain features should not be displayed.
This is very nice for things like unconnected temperature sensors
or fans.

Modifications to the library code, to the sensors program and to
the documentation and example sensors.conf file.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@676 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 22:44:41 +00:00
Frodo Looijaard
01bad38253 Added DESTDIR Makefile variable
Set DESTDIR if you want to install at some other place then where you
will run everything from.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@675 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 19:52:28 +00:00
Frodo Looijaard
258c8dd869 Olaf Titz <olaf@bigred.inka.de> patches for the SIS5595 driver
It still does not work - but I need more feedback to determine what
is happening.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@674 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 19:44:34 +00:00
Frodo Looijaard
406af47121 Update in INSTALL and README to reflect the new i2c code in kernels
2.3.34 and newer.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@673 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-21 23:40:26 +00:00
Frodo Looijaard
1c3ed32ebd Added entry in the MAINTAINERS file
Please check the data below; for now, I have listed myself and Phil as
maintainers. If you would like that changed, Phil, please feel free.

# P: Person
# M: Mail patches to
# L: Mailing list that is relevant to this area
# W: Web-page with status/info
# S: Status, one of the following:

SENSORS DRIVERS
P:      Frodo Looijaard
M:      frodol@dds.nl
P:      Philip Edelbrock
M:      phil@netroedge.com
L:      lm78@stimpy.netroedge.com
W:      http://www.lm-sensors.nu/
S:      Maintained


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@672 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-21 23:27:15 +00:00
Philip Edelbrock
77ce5b9fed (Phil) Slight update to the I2C download/kernel integration info.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@671 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-21 17:29:30 +00:00
Mark D. Studebaker
87993e7c02 (mds) add support for force parameter. This allows for as99127f users to
use lm75 driver for temp2 and temp3 until I fix w83781d driver.
      LM75 detection fails on as99127f (and w83781d temp2).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@670 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-14 01:24:37 +00:00
Frodo Looijaard
0e3dc7204e Added warning if i2c patches were not applied first.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@669 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-13 12:29:07 +00:00
Frodo Looijaard
f8ed5fc6ce Adrian's cosmetic newline
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@668 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-10 19:44:00 +00:00
Frodo Looijaard
fd545796ee Changes regarding the new i2c_check_addr function
Changes in sensors.c:

  sensors_detect now skips addresses which are already taken. Even a
  force parameter can not override this, as it could lead to major
  problems.
  For ISA addresses, the same is done; but the client drivers still need
  a check if they claim more than one ISA address (as all of the current
  ISA clients do).

Changes in chip drivers:

  Removed the comment about needing address registration

Changes in i2cdetect.c:

  Marks addresses which are already claimed

Changes in sensors-detect:

  Warns when an address is already claimed, and skips it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@667 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-08 20:37:09 +00:00
Frodo Looijaard
d3441611d6 SMP bug solved (file not included)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@666 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-08 17:38:45 +00:00
Frodo Looijaard
6ee1e9f4bd Fixed sensors-detect croak, I hope
Forgot to put in a few braces :-(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@665 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-05 23:54:23 +00:00
Frodo Looijaard
d14ecfa522 sensors-detect now shows aliases
Could somebody with a LM78 or W83781D on both SMBus and ISA bus please test
this? It should say `Alias of the chip on I2C bus `...' address `...''
when scanning the ISA bus.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@664 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-05 20:15:43 +00:00
Mark D. Studebaker
b5d883ad24 (mds) bug fixes on sensor[1-3] reads and writes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@663 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-04 02:52:15 +00:00
Mark D. Studebaker
8701621657 (mds) minor updates.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@662 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-04 02:49:20 +00:00
Merlin Hughes
8e5830460f (Merlin) Added simple sensord sensory logging daemon. Not installed by
default. Now uses libsensors. Ripped the display formatting code from
sensors (with some modification) but needless to say I've only tested
a single chip. Doesn't support alarms yet. With a bit of work, could
share the display formatting code with sensors so just one source needs
updating. Compiles on my machine.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@661 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-03 00:48:25 +00:00
Frodo Looijaard
7fe47c13ba Made the reference to SENSORS_W83782D_FAN3_DIV - it referenced
SENSORS_W83781D_FAN3_DIV before (copy&paste error...)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@660 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 23:14:53 +00:00
Merlin Hughes
dc8c852723 (Merlin) Took the liberty of adding SENSORS_W83782D_FAN3_DIV, copied W83781D.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@659 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 21:26:55 +00:00
Merlin Hughes
4343e90a9b (Merlin) removed some legacy piix constants and comments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@658 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 21:16:29 +00:00
Frodo Looijaard
1e0cbbe5c7 Hopefully fixed dependencies once and for all...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@657 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 14:22:35 +00:00
Philip Edelbrock
6cf56587d1 (Phil) Prep for 2.4.4 release. I also reordered a couple checklist items
in a more logical order (for me anyway).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@656 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 03:29:13 +00:00
Frodo Looijaard
bf14de051f New SiS5595 SMBus driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@654 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 02:05:25 +00:00
Frodo Looijaard
be2a5407e9 Fixed bug in PIIX4 driver: it claimed to do SMBUS_PROC_CALL.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@653 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 01:45:58 +00:00
Philip Edelbrock
5a686e9751 (Phil) Simple Perl script to generate passwords for CVS!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@652 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 01:22:31 +00:00
Frodo Looijaard
c158f1b4a6 Moved AMD756 ID to the main i2c-id.h file
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@651 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 00:50:47 +00:00
Frodo Looijaard
296ac5f517 Oops, corrupted access.c in the last commit...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@650 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 21:12:03 +00:00
Frodo Looijaard
59bd758cd7 Something in the README about ways to determine your chips
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@649 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 21:07:51 +00:00
Frodo Looijaard
389f9b89f3 i2c-detect now checks whether SMBus quick write is in the
functionality matrix.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@648 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 15:47:11 +00:00
Frodo Looijaard
77051058bb A bit too optimistic in my last commit - still more disagreement
about init function names that needed to be fixed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@647 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 01:08:11 +00:00
Frodo Looijaard
b9831fbfcd Fixed the strange compile problems some people had
Reasons varied from typos (_ instead of -) to static declarations that
should have been extern.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@646 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:57:44 +00:00
Frodo Looijaard
5059c482fd Just to make sure, added `#include <linux/version.h>' at several
other places.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@645 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:48:34 +00:00
Frodo Looijaard
efe7346ff5 Small fix: sis5595.c did not compile into the kernel, because
<linux/version.h> was not included (it was automatically
       included by <linux/module.h> when a module, but that is not good
       enough of course...)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@644 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:36:38 +00:00
Frodo Looijaard
1238d9ab44 New i2c-amd756 driver by Merlin Hughes <merlin@merlin.org>
sensors-detect detection is now complete; I think nothing else needs
to be done in the tree?!? (except documentation of course)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@643 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:33:33 +00:00
Frodo Looijaard
100bbc916c Fixed VIA dependency on bit-banging algorithm
For better results, we should restructure the Config dialog, but this will
do for now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@642 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-30 22:51:20 +00:00
Frodo Looijaard
9951d5c9d0 A few files not committed for some reason in the previous run
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@641 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-30 20:49:45 +00:00
Frodo Looijaard
52b2ce8f52 Patches to make it compatible with kernel 2.3.27 and newer
* Improved monitoring of /proc directories
  Instead of doing:
         proc_bus_i2c->fill_inode = &monitor_bus_i2c;
         void monitor_bus_i2c(struct inode *inode, int fill)
         {
           if (fill)
             MOD_INC_USE_COUNT;
           else
             MOD_DEC_USE_COUNT;
         }
  you can now simply set:
         proc_bus_i2c->owner = THIS_MODULE;
  and this is just as good!
* An old 2.3 problem seemingly never was resolved yet: instead of using
  a *wait_queue directly, you have to use a wait_queue_head_t and
  initialize it properly:
         #if (LINUX_VERSION_CODE < 0x020301)
         static struct wait_queue *pcf_wait = NULL;
         #else
         static wait_queue_head_t pcf_wait;
         #endif

         #if (LINUX_VERSION_CODE >= 0x020301)
            init_waitqueue_head(&pcf_wait);
         #endif
  except for this, semantics remain the same (but using a plain
  wait_queue_head_t instead of a pointer to a wait_queue)
* I had to change the semantics of sensors_register_entry slightly,
  to make the monitoring of /proc/sys/dev/* files possible for kernels
  2.3.27 and newer. It now takes an additional parameter, which you
  can specify as THIS_MODULE.
* THIS_MODULE is only defined in kernels 2.3.13 and later; added
  it to compat.h and the compatibility section of mkpatch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@640 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-30 20:48:43 +00:00
Frodo Looijaard
e3ff8f1660 Added entry on TODO list:
* Add MTP006F chip: http://www.myson.com/Pcd/MTP006/Mtp006.pdf
  gfiala@s.netic.de (Guido Fiala) has one on his mainboard


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@639 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-28 18:48:17 +00:00
Frodo Looijaard
7bc2f2ff25 mkpatch fix to make CONFIG_I2C_VIA depend on CONFIG_I2C_ALGOBIT
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@638 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-25 19:43:03 +00:00
Frodo Looijaard
76137a7bf2 Typo as spotted by Kevin Ryde fixed
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@637 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-23 22:54:26 +00:00
Frodo Looijaard
3a48853a5e Some additional things to do when releasing.
Added/changed:
- Update, if necessary, the version number of `sensors'
  (edit prog/sensors/sensors.c and change the VERSION define)
- Update if necessary, the version number of libsensors
  (edit lib/Module.mk and change LIBMAINVER and/or LIBMINORVER)
  Remember: update main number when interface changes, minor if new
  functionality is added, and patch if only bugs are fixed.
- Update lm_sensors.lsm and send it to the LSM by mailing it to
  lsm@execpc.com with the subject `add' (no quotes).

Also bumped up the `sensors' version number (should have done that
long ago), it is now at 1.0.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@636 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-20 19:45:47 +00:00