Commit Graph
111 Commits
Author SHA1 Message Date
Mark D. Studebaker 06d823b430 remove initialization of limits by driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2071 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-18 02:37:31 +00:00
Jean Delvare 08cebfef4c Fix a bug in detection. Could have failed to detect the chip and
still return with no error code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2055 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-14 20:08:37 +00:00
Jean Delvare e574d476b5 Fix W83791D detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2034 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-28 19:17:04 +00:00
Jean Delvare 8b82c4d22d Fix W83627HF detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2025 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-25 18:53:48 +00:00
Mark M. Hoffman 6597650205 Trivial formatting fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2024 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-23 04:40:49 +00:00
Mark D. Studebaker 15490f82f5 fix up error returns; from 2.5 patch of MMH
* Greg KH <greg@kroah.com> [2003-06-02 10:20:40 -0700]:

> On Sun, Jun 01, 2003 at 10:38:08AM -0400, Mark M. Hoffman wrote:
> > > This patch against 2.5.70 works for me vs. an SMBus adapter.  It needs
> > re-testing against an ISA adapter since my particular chip is SMBus only.
>
> I've applied this and will send it off to Linus in a bit.


Thanks!

This patch fixes the various return values in the w83781d_detect()
error paths.  It also cleans up some formatting here and there.
It should be applied on top of the previous one.

It works for me; same caveat as above w.r.t. ISA.

Regards,

--
Mark M. Hoffman
mhoffman@lightlink.com


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1990 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-31 22:31:56 +00:00
Mark D. Studebaker 6815e0bafe Fix 697HF PWM (ticket 1207). Fix 791D PWM.
Fix 697HF V5SB and VBAT alarms.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1983 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-30 21:38:33 +00:00
Jean Delvare e61dd02edd Enhance chip detection (stricter).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1928 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-31 07:21:15 +00:00
Jean Delvare 5151325f0a Fix voltage rounding.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1882 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-16 07:42:23 +00:00
Mark D. Studebaker 2c31ea166c add w83791d detection, update documentation
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1782 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 03:01:31 +00:00
Mark D. Studebaker 1755e4adc0 add 791d support. Patch from Ross Biro <rossb@google.com>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1772 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 20:45:46 +00:00
Mark D. Studebaker bbdef07b0e add 791D sysctls; IN9, FAN4, FAN5
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1753 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-02 23:44:58 +00:00
Mark M. Hoffman f5360dc279 (Re)added missing <ioport.h>.
Now compiles correctly w/ versioned symbols.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1709 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-31 04:00:33 +00:00
Kyosti Malkki 1cfe63804a (Kyösti) Cleanups
Copy sysctl enums to chip drivers from sensors.h for now,
   as seen in drivers included in 2.5 tree. File no longer included
   from kernel side.

   Apply i2c-proc change in CVS tagged -km2.

   Partial clean and sort of includes everywhere.

   Add i2c-dev.h, as a partial copy from i2c.
   Add to sensors.h from i2c-proc.h to compile things.
   Remove i2c-isa.h.

   Reflect header file changes to lib/ and prog/.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-21 20:01:27 +00:00
Kyosti Malkki 39391ba6ea (Kyösti) some cleanups for 2.4+
Module refcounting using .owner, removing of inc/dec_use.
   These require (yet unreleased) i2c 2.8.0+.

   Named initializers everywhere. Unified namespace.

   Cleanup for 2.5, remove EXPORT_NO_SYMBOLS, declare everything
   static. Apply initcalls.

   PCI device registration changes for busses started, replicating
   from i2c-amd*. While everything does compile, nothing really
   works. Well, maybe i2c-amd* ported back from 2.5 tree.

   After updating your work directory, run
    > cvs diff -u -r LAST-PRE-2-8-I2C > lm-2.8-patches-1

   BEWARE: I have not even insmoded any of these yet.

   To compile, you need i2c from cvs too.
   For 2.4 kernel :
    > cvs co -r lk2-4 i2c

   For 2.5 kernel :
    > cvs co i2c


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1698 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-17 01:19:52 +00:00
Mark D. Studebaker bd4049d06e update and standardize PWM support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1679 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-12-21 21:05:48 +00:00
Mark D. Studebaker ef2049dc50 fix in0/in1 initialization; patch from
Dave Johnson <ddj@cascv.brown.edu>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1545 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-09-21 22:11:56 +00:00
Mark D. Studebaker 8a7d9d7d07 add support for Asus ASB100 Bach. Patch from
"Mark M. Hoffman" <mhoffman@lightlink.com>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1486 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-08-04 19:01:35 +00:00
Albert Cranford 5f66e08cf8 Compile warnings uninitialized variables. Initialize to 0.
ACC 29jul02


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1470 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-30 03:00:22 +00:00
Mark D. Studebaker 927aae8b81 Initialize temp1-3 to "comparator" mode so that the ALARM
indication will always be valid; it won't be cleared forever by
      reading the register. Do this by setting temp1_hyst to 127
      and programming register 4C which sets it for temps 2 and 3.
      Don't print hyst. value for temp1 in 'sensors' if == 127.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1407 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-29 02:46:51 +00:00
Mark D. Studebaker 93022bef6c add programmable VRM support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1355 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-23 02:47:18 +00:00
Mark D. Studebaker 115f2db300 add force_subclients parameter which allows moving subclients
to different addresses; this allows initialization of two
      clients on the same i2c bus by preventing subclient address
      conflicts at 0x48 and 0x49.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1312 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-02-09 16:36:54 +00:00
Mark D. Studebaker 8f53105142 add w83697hf in7 and in8 support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1254 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-28 02:50:57 +00:00
Mark D. Studebaker 5d4b07b1e9 add initial support for w83697hf to w83781d.
Similar to w83783s except no VID or fan3, and ISA only.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1246 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-21 01:01:17 +00:00
Mark D. Studebaker e7fc40b690 Add 'init' parameter to control initialization.
Use 'init=0' to skip initialization, this should fix
      those pesky PC's that crash when you load w83781d.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1209 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-22 01:20:48 +00:00
Mark D. Studebaker 7bd97f4667 Add MODULE_LICENSE("GPL") to all modules
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1201 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-13 17:48:43 +00:00
Mark D. Studebaker 5c91c75f11 malloc.h -> slab.h
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1193 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-09-29 18:32:15 +00:00
Mark D. Studebaker 147e70c39c Fix rather strange un-parenthesized "if" clause that somebody's
compiler tripped over, even though it shouldn't have.
      Ticket #638.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1162 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-08-18 22:08:03 +00:00
Mark D. Studebaker 1807068ae1 fix as99127f fan speeds that were 60% low.
This was broken by 2.6.0 because
      2.6.0 didn't reset the fan clock setting at startup.
      Therefore the AS_FAN_* macros were no longer needed to specially
      correct the fan speed. So remove the special handling and the
      AS_FAN_* macros and things should work now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1135 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-17 22:39:13 +00:00
Mark D. Studebaker e7b19fc456 fix duplicate subaddress msg I just put in.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1128 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-09 13:40:13 +00:00
Mark D. Studebaker bd63a9d9fc add check for duplicate subclient addresses and add printk's
to report subclient registration failures


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1127 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-09 00:36:07 +00:00
Mark D. Studebaker a21694024e Change from sensors_x to i2c_x for x =
_sysctl_real
		_register_entry
		_proc_real
		_detect
		_deregister_entry
		_chips_data
      which were the global symbols renamed in i2c-proc.[ch] in the
      i2c package.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1101 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-27 22:49:28 +00:00
Mark D. Studebaker cddd0a915e Don't reset the as99127f chip at startup. This may improve things
that are configurable as we will count on the BIOS to configure
      the chip correctly. This will likely change fan and temperature
      readings for some users.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1039 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-03-20 01:46:44 +00:00
Mark D. Studebaker b5d014bd46 Disable sensors.c and i2c-isa.h in the Module.mk files.
Leave the files there for now.
      Remove old installed sensors.o in kernel/Module.mk.
      sensors.c was moved to i2c-proc.c in the i2c package.
      i2c-isa.h was appended to i2c.h in the i2c package.
      Delete all but the SYSCTL and ALARMS definitions in sensors.h,
      as the rest of the file was moved to i2c-proc.h in the i2c package.
      Remove #include "i2c-isa.h" lines in all chip drivers and
      in bus driver i2c-isa.c.
      This all probably breaks mkpatch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1015 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-06 02:53:46 +00:00
Frodo Looijaard aa0c8f6768 Updated the MUTEX definitions again - they are now guarded by
the horrible
         #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \
             (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0))
        They should now both work with 2.3 kernels (including 2.4 prepatches)
        and very new 2.2 kernels (ie. 2.2.18 prepatches)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@933 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-22 23:54:39 +00:00
Frodo Looijaard 4444c1464a Applied patch of Chip Salzenberg <chip@valinux.com>:
Better #ifdefs


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@929 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-18 11:38:15 +00:00
Frodo Looijaard 2e083cada0 Fixed small bug that made writing to the first field only of
the 'beep' file (global enable/disable) have random results.

Patch by Frans E. van Dorsselaer <frans@bia-bv.demon.nl>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@918 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-29 23:52:38 +00:00
Mark D. Studebaker ea5430f3f7 (mds) Limit the as99127f fan_div values to 8. The as99127f apparently
does not support the extended fan_div bits like the w83782d
      does. This should fix fan2 so it defaults to a divisor
      of 2 instead of 32.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@871 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-10 23:28:51 +00:00
Frodo Looijaard 78d4aac923 Bugfix for w83781d.c: unloading of w83783s now works.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@823 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-06-21 20:34:50 +00:00
Mark D. Studebaker 1371cc89c0 (mds) Change as99127f fan speed calculation based on actual
measurements with frequency counter. Divisor changed from
      1350000 to 810000.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@819 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-06-17 20:33:50 +00:00
Mark D. Studebaker 66113bdcd3 (mds) For as99127f, remove in7-8, sensor1-3, pwm3-4
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@807 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-13 17:31:11 +00:00
Mark D. Studebaker c07053a572 (mds) fix sensor selection for sensor2/sensor3.
Enable VBAT (in8) monitoring.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@800 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-06 20:58:10 +00:00
Mark D. Studebaker c4bf748b21 (mds) w83627hf only has 2 pwm whether on ISA or I2C bus.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@797 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-06 16:41:01 +00:00
Mark D. Studebaker c73a081460 (mds) don't register address or update values for 2nd "lm75" in a w83783s
because there is only one.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@777 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-15 02:56:56 +00:00
Mark D. Studebaker ac2f78cb0e (mds) stop changing fan 1/2/3 input/output values at module startup,
hopefully this will preserve BIOS settings.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@728 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-07 01:54:00 +00:00
Mark D. Studebaker 0efe92ad9a (mds) more parentheses in detection if statement - can't hurt.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@719 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-30 02:37:03 +00:00
Frodo Looijaard 6a2c82b491 `indent -kr -i8' on all kernel sources
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@707 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 20:37:01 +00:00
Frodo Looijaard 888d32f50b Removing kernel 2.0 and 2.1 compatibility pass 2
Eliminated compat.h


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@705 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 20:07:29 +00:00
Frodo Looijaard 9480bb5988 Removal of kernel 2.1 and 2.2 compatibility: pass one
Removed many #if statements


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@704 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 19:30:08 +00:00
Mark D. Studebaker c80cf6c1eb (mds) Divide temp2 and temp3 by 2 for as99127f. Resolves reports
by Dirk Mueller and Pixel that readings were 2x too high.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@693 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-11 03:08:41 +00:00